summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-02-08 23:44:33 +0100
committerBruno Haible <bruno@clisp.org>2023-02-08 23:44:33 +0100
commit3348dad8cd44857138662568b8cc076c3331903e (patch)
treefe8ba81a904cb6fa1661be94746fd286a00a700b /lib
parent4dff93434fcb770cb490a738d10d9cbb4a35d5be (diff)
downloadgnulib-3348dad8cd44857138662568b8cc076c3331903e.tar.gz
nl_langinfo: Add comment regarding per-thread locales.
* lib/nl_langinfo.c (ctype_codeset): Add comment.
Diffstat (limited to 'lib')
-rw-r--r--lib/nl_langinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nl_langinfo.c b/lib/nl_langinfo.c
index 131166fd71..f872c6d5e2 100644
--- a/lib/nl_langinfo.c
+++ b/lib/nl_langinfo.c
@@ -70,6 +70,8 @@
static char *
ctype_codeset (void)
{
+ /* This function is only used on platforms which don't have uselocale().
+ Therefore we don't need to look at the per-thread locale first, here. */
static char result[2 + 10 + 1];
char buf[2 + 10 + 1];
char locale[SETLOCALE_NULL_MAX];