1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

Update comment about uc_locale_language.

* libguile/i18n.c (locale_language): Update comment.
This commit is contained in:
Bruno Haible 2011-03-26 23:33:00 +01:00 committed by Andy Wingo
parent 38c50a99b6
commit 96c71c589a

View file

@ -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 ();
}