]> Savannah Git Hosting - gnulib.git/commitdiff
hard-locale: Add comment regarding per-thread locales.
authorBruno Haible <bruno@clisp.org>
Wed, 8 Feb 2023 22:45:41 +0000 (23:45 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 8 Feb 2023 22:45:41 +0000 (23:45 +0100)
* lib/hard-locale.h (hard_locale): Add comment.

ChangeLog
lib/hard-locale.h

index 97f810d1fa2b467d82229bf6188b4a0104632782..55bd2cb4cfe3cf84ca9583cff0c7c4cbd4d00df8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-08  Bruno Haible  <bruno@clisp.org>
+
+       hard-locale: Add comment regarding per-thread locales.
+       * lib/hard-locale.h (hard_locale): Add comment.
+
 2023-02-08  Bruno Haible  <bruno@clisp.org>
 
        nl_langinfo: Add comment regarding per-thread locales.
index 880c9e85db5747b19df4247de36a01231283b143..5123d71d95e82e34f47d1a73cfd2d48ca7825a7a 100644 (file)
@@ -20,7 +20,9 @@
 
 /* Return true if the specified CATEGORY of the current locale is hard, i.e.
    different from the C or POSIX locale that has a fixed behavior.
-   CATEGORY must be one of the LC_* values, but not LC_ALL.  */
+   CATEGORY must be one of the LC_* values, but not LC_ALL.
+   Note: This function uses the current global locale; it ignores the
+   per-thread locale.  */
 extern bool hard_locale (int category);
 
 #endif /* HARD_LOCALE_H_ */