Do not modify locales
This commit is contained in:
parent
48e6b05a67
commit
b5ed0fe321
@ -96,7 +96,7 @@ el_init_fd(const char *prog, FILE *fin, FILE *fout, FILE *ferr,
|
||||
*/
|
||||
el->el_flags = 0;
|
||||
#ifdef WIDECHAR
|
||||
if (setlocale(LC_CTYPE, "") != NULL) {
|
||||
if (setlocale(LC_CTYPE, NULL) != NULL) {
|
||||
if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0)
|
||||
el->el_flags |= CHARSET_IS_UTF8;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user