From: Bruno Haible Date: Wed, 8 Feb 2023 22:45:41 +0000 (+0100) Subject: hard-locale: Add comment regarding per-thread locales. X-Git-Tag: v1.0~1693 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=75e9dc65eb3f631e124f5a30d4a0234c0096672c;p=gnulib.git hard-locale: Add comment regarding per-thread locales. * lib/hard-locale.h (hard_locale): Add comment. --- diff --git a/ChangeLog b/ChangeLog index 97f810d1fa..55bd2cb4cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-02-08 Bruno Haible + + hard-locale: Add comment regarding per-thread locales. + * lib/hard-locale.h (hard_locale): Add comment. + 2023-02-08 Bruno Haible nl_langinfo: Add comment regarding per-thread locales. diff --git a/lib/hard-locale.h b/lib/hard-locale.h index 880c9e85db..5123d71d95 100644 --- a/lib/hard-locale.h +++ b/lib/hard-locale.h @@ -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_ */