From: naddy Date: Sun, 12 Apr 2015 20:18:41 +0000 (+0000) Subject: Let nl_langinfo(CODESET) return "US-ASCII" as the name of the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dce0a28c56d1943858f388baa7ce80705227e868;p=openbsd 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@ --- 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 },