* lib/nl_langinfo.c (ctype_codeset): Add comment.
2023-02-08 Bruno Haible <bruno@clisp.org>
+ nl_langinfo: Add comment regarding per-thread locales.
+ * lib/nl_langinfo.c (ctype_codeset): Add comment.
+
nl_langinfo tests: Add another test.
* tests/test-nl_langinfo2.c: New file.
* tests/test-nl_langinfo2.sh: New file.
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];