From: Damien Miller Date: Mon, 20 Mar 2017 00:48:34 +0000 (+1100) Subject: Yet another synonym for ASCII: "646" X-Git-Tag: V_7_5_P1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef1f9bafc2cc8d97ff2fbd4f280002b6e8ea5d9;p=thirdparty%2Fopenssh-portable.git Yet another synonym for ASCII: "646" Used by NetBSD; this unbreaks mprintf() and friends there for the C locale (caught by dtucker@ and his menagerie of test systems). --- diff --git a/utf8.c b/utf8.c index f2c89a26b..d38902032 100644 --- 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