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).
This commit is contained in:
Damien Miller 2017-03-20 11:48:34 +11:00
parent 9165abfea3
commit 7ef1f9bafc

2
utf8.c
View File

@ -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