diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-04-26 09:25:44 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-04-26 09:25:44 +0000 |
commit | b5ed0fe321520384f25e9c358e9c494b4587b58d (patch) | |
tree | b51b6520b2dd706555489dc2bee3a21c7a5c4293 /lib/libedit | |
parent | 48e6b05a679318d61f9f29b6fcd8b93c95be0094 (diff) | |
download | src-test-b5ed0fe321520384f25e9c358e9c494b4587b58d.tar.gz src-test-b5ed0fe321520384f25e9c358e9c494b4587b58d.zip |
Do not modify locales
Notes
Notes:
svn path=/head/; revision=281995
Diffstat (limited to 'lib/libedit')
-rw-r--r-- | lib/libedit/el.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libedit/el.c b/lib/libedit/el.c index beb961efc0f50..a0d70158193ba 100644 --- a/lib/libedit/el.c +++ b/lib/libedit/el.c @@ -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; } |