mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-30 14:30:27 +00:00
Co-authored-by: Hugues Morisset <morisset.hugues@gmail.com>
This commit is contained in:
parent
9c5a7795ad
commit
0740e68ea0
5 changed files with 154 additions and 0 deletions
|
@ -66,6 +66,9 @@ char *nl_langinfo_l(nl_item item, locale_t loc)
|
|||
int idx = item & 65535;
|
||||
const char *str;
|
||||
|
||||
if (!loc)
|
||||
return "";
|
||||
|
||||
if (item == CODESET) return loc->cat[LC_CTYPE] ? "UTF-8" : "ASCII";
|
||||
|
||||
/* _NL_LOCALE_NAME extension */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue