diff options
author | Bruno Haible <bruno@clisp.org> | 2023-02-08 23:44:33 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-02-08 23:44:33 +0100 |
commit | 3348dad8cd44857138662568b8cc076c3331903e (patch) | |
tree | fe8ba81a904cb6fa1661be94746fd286a00a700b /lib | |
parent | 4dff93434fcb770cb490a738d10d9cbb4a35d5be (diff) | |
download | gnulib-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.c | 2 |
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]; |