diff options
author | bapt <bapt@FreeBSD.org> | 2015-04-26 09:25:44 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-04-26 09:25:44 +0000 |
commit | d6676290e0e0f043158afbebfeffec036fbf3c6e (patch) | |
tree | b51b6520b2dd706555489dc2bee3a21c7a5c4293 /lib | |
parent | 2a95d595d609fdef58915acff21137763540bc3b (diff) | |
download | FreeBSD-src-d6676290e0e0f043158afbebfeffec036fbf3c6e.zip FreeBSD-src-d6676290e0e0f043158afbebfeffec036fbf3c6e.tar.gz |
Do not modify locales
Diffstat (limited to 'lib')
-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 beb961e..a0d7015 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; } |