projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
optimize malloc0
[musl]
/
src
/
locale
/
langinfo.c
diff --git
a/src/locale/langinfo.c
b/src/locale/langinfo.c
index
b16caf4
..
83be643
100644
(file)
--- a/
src/locale/langinfo.c
+++ b/
src/locale/langinfo.c
@@
-33,7
+33,7
@@
char *__nl_langinfo_l(nl_item item, locale_t loc)
int idx = item & 65535;
const char *str;
- if (item == CODESET) return
MB_CUR_MAX==1 ? "ASCII" : "UTF-8
";
+ if (item == CODESET) return
loc->cat[LC_CTYPE] ? "UTF-8" : "ASCII
";
/* _NL_LOCALE_NAME extension */
if (idx == 65535 && cat < LC_ALL)