summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index e9f551d50..eab36de2a 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -4888,7 +4888,7 @@ getkeystring(char *s, int *len, int how, int *misc)
 		    if (!codesetstr || !*codesetstr ||
 			!strcmp(codesetstr, "646"))
 			codesetstr = "US-ASCII";
-    	    	    cd = iconv_open(nl_langinfo(CODESET), "UCS-4BE");
+    	    	    cd = iconv_open(codesetstr, "UCS-4BE");
 		    if (cd == (iconv_t)-1) {
 			zerr("cannot do charset conversion (iconv failed)");
 			CHARSET_FAILED();