Hi,

The comment about uc_locale_language is outdated. Please consider this patch
(to be applied with "patch -p0").


2011-03-26  Bruno Haible  <br...@clisp.org>

        Update comment about uc_locale_language.
        * libguile/i18n.c (locale_language): Update comment.

--- libguile/i18n.c.orig        Sat Mar 26 16:40:28 2011
+++ libguile/i18n.c     Sat Mar 26 16:34:55 2011
@@ -766,16 +766,11 @@
 static const char *
 locale_language ()
 {
-  /* FIXME: If the locale has been set with 'uselocale',
-     libunistring's uc_locale_language will return the incorrect
+  /* Note: If the locale has been set with 'uselocale', uc_locale_language
+     from libunistring versions 0.9.1 and older 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.  */
+     (non-thread-specific) locale.  This is fixed in versions 0.9.2 and
+     newer.  */
   return uc_locale_language ();
 }
 
-- 
In memoriam Joseph Carlebach <http://en.wikipedia.org/wiki/Joseph_Carlebach>

Reply via email to