diff options
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/langinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/locale/langinfo.c b/src/locale/langinfo.c index a1ada246..776b4478 100644 --- a/src/locale/langinfo.c +++ b/src/locale/langinfo.c @@ -33,7 +33,8 @@ char *__nl_langinfo_l(nl_item item, locale_t loc) int idx = item & 65535; const char *str; - if (item == CODESET) return "UTF-8"; + if (item == CODESET) + return MB_CUR_MAX==1 ? "UTF-8-CODE-UNITS" : "UTF-8"; switch (cat) { case LC_NUMERIC: |