aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-04-26 09:25:44 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-04-26 09:25:44 +0000
commitb5ed0fe321520384f25e9c358e9c494b4587b58d (patch)
treeb51b6520b2dd706555489dc2bee3a21c7a5c4293
parent48e6b05a679318d61f9f29b6fcd8b93c95be0094 (diff)
downloadsrc-b5ed0fe321520384f25e9c358e9c494b4587b58d.tar.gz
src-b5ed0fe321520384f25e9c358e9c494b4587b58d.zip
Do not modify locales
Notes
Notes: svn path=/head/; revision=281995
-rw-r--r--lib/libedit/el.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libedit/el.c b/lib/libedit/el.c
index beb961efc0f5..a0d70158193b 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;
}