summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2017-03-20 11:48:34 +1100
committerDamien Miller <djm@mindrot.org>2017-03-20 11:51:03 +1100
commit7ef1f9bafc2cc8d97ff2fbd4f280002b6e8ea5d9 (patch)
tree382fc5cb4def7456fa6668e6d7c8cdcfa0477926
parent9165abfea3f68a0c684a6ed2e575e59bc31a3a6b (diff)
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).
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
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) {
61 61
62 loc = nl_langinfo(CODESET); 62 loc = nl_langinfo(CODESET);
63 return strcmp(loc, "US-ASCII") != 0 && strcmp(loc, "UTF-8") != 0 && 63 return strcmp(loc, "US-ASCII") != 0 && strcmp(loc, "UTF-8") != 0 &&
64 strcmp(loc, "ANSI_X3.4-1968") != 0; 64 strcmp(loc, "ANSI_X3.4-1968") != 0 strcmp(loc, "646") != 0;
65} 65}
66 66
67static int 67static int