svn commit: r281995 - head/lib/libedit
Baptiste Daroussin
bapt at FreeBSD.org
Sun Apr 26 09:25:45 UTC 2015
Author: bapt
Date: Sun Apr 26 09:25:44 2015
New Revision: 281995
URL: https://svnweb.freebsd.org/changeset/base/281995
Log:
Do not modify locales
Modified:
head/lib/libedit/el.c
Modified: head/lib/libedit/el.c
==============================================================================
--- head/lib/libedit/el.c Sun Apr 26 07:52:43 2015 (r281994)
+++ head/lib/libedit/el.c Sun Apr 26 09:25:44 2015 (r281995)
@@ -96,7 +96,7 @@ el_init_fd(const char *prog, FILE *fin,
*/
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;
}
More information about the svn-src-head
mailing list