mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Do not modify locales
This commit is contained in:
parent
48e6b05a67
commit
b5ed0fe321
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281995
@ -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