From 75e9dc65eb3f631e124f5a30d4a0234c0096672c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 8 Feb 2023 23:45:41 +0100 Subject: [PATCH] hard-locale: Add comment regarding per-thread locales. * lib/hard-locale.h (hard_locale): Add comment. --- ChangeLog | 5 +++++ lib/hard-locale.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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_ */ -- 2.39.5