summaryrefslogtreecommitdiff
path: root/libguile/i18n.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-03-26 23:33:00 +0100
committerAndy Wingo <wingo@pobox.com>2011-03-26 23:33:00 +0100
commit96c71c589a866e41b3a95ccc90318c6a28e42004 (patch)
tree8b66da78ccc70004ec11ac1afffa02f08ccb68d9 /libguile/i18n.c
parent38c50a99b695694b684662663294eaeba2bcba30 (diff)
downloadguile-96c71c589a866e41b3a95ccc90318c6a28e42004.tar.gz
Update comment about uc_locale_language.
* libguile/i18n.c (locale_language): Update comment.
Diffstat (limited to 'libguile/i18n.c')
-rw-r--r--libguile/i18n.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/libguile/i18n.c b/libguile/i18n.c
index 51bbc2f04..fc651fd7e 100644
--- a/libguile/i18n.c
+++ b/libguile/i18n.c
@@ -766,16 +766,10 @@ compare_u32_strings (SCM s1, SCM s2, SCM locale, const char *func_name)
static const char *
locale_language ()
{
- /* FIXME: If the locale has been set with 'uselocale',
- libunistring's uc_locale_language will return the incorrect
- language: it will return the language appropriate for the global
- (non-thread-specific) locale.
-
- There appears to be no portable way to extract the language from
- the thread-specific locale_t. There is no LANGUAGE capability in
- nl_langinfo or nl_langinfo_l.
-
- Thus, uc_locale_language needs to be fixed upstream. */
+ /* Note: If the locale has been set with 'uselocale', uc_locale_language
+ from libunistring versions 0.9.1 and older will return the incorrect
+ (non-thread-specific) locale. This is fixed in versions 0.9.2 and
+ newer. */
return uc_locale_language ();
}