]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Yet another synonym for ASCII: "646"
authorDamien Miller <djm@mindrot.org>
Mon, 20 Mar 2017 00:48:34 +0000 (11:48 +1100)
committerDamien Miller <djm@mindrot.org>
Mon, 20 Mar 2017 00:51:03 +0000 (11:51 +1100)
Used by NetBSD; this unbreaks mprintf() and friends there for the C
locale (caught by dtucker@ and his menagerie of test systems).

utf8.c

diff --git a/utf8.c b/utf8.c
index f2c89a26ba79e7d8facebe19c9170696e0193bda..d38902032bd47df03be9affed694bbbd56d6f01c 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -61,7 +61,7 @@ dangerous_locale(void) {
 
        loc = nl_langinfo(CODESET);
        return strcmp(loc, "US-ASCII") != 0 && strcmp(loc, "UTF-8") != 0 &&
-           strcmp(loc, "ANSI_X3.4-1968") != 0;
+           strcmp(loc, "ANSI_X3.4-1968") != 0 strcmp(loc, "646") != 0;
 }
 
 static int