summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2015-04-12 20:18:42 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2015-04-12 20:18:42 +0000
commitcfe53e2b0d5af77b09bc43d16f0b3acc10d46d3a (patch)
tree91cdb66a7120cf71537ba45549c028e4c60ae823 /lib/libc
parent5c9e8a0a479250c27cede7b2c6b18798c3731e7c (diff)
Let nl_langinfo(CODESET) return "US-ASCII" as the name of the
character codeset for the POSIX/C default locale. This is the preferred IANA name and also used by FreeBSD. The previous value "646" was an obscure reference to ISO 646 (= ASCII) and was not recognized by GNU iconv out of the box. ok millert@, stsp@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/runetable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/runetable.c b/lib/libc/locale/runetable.c
index 7a036ac63bb..a669bf5264a 100644
--- a/lib/libc/locale/runetable.c
+++ b/lib/libc/locale/runetable.c
@@ -376,7 +376,7 @@ _RuneLocale _DefaultRuneLocale = {
{ 0, NULL },
{ 0, NULL },
NULL, 0,
- "646",
+ "US-ASCII",
&_citrus_ctype_none,
{
{ NULL, NULL, NULL },