From dce0a28c56d1943858f388baa7ce80705227e868 Mon Sep 17 00:00:00 2001 From: naddy Date: Sun, 12 Apr 2015 20:18:41 +0000 Subject: [PATCH] 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@ --- lib/libc/locale/runetable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- 2.20.1