From 34d08e870eda48452df40ab1a00e2c4fd7230a07 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 23 Oct 1995 20:20:11 +0000 Subject: [PATCH] Treat empty encoding as "C" encoding --- lib/libc/locale/setrunelocale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index f2af35946d62..df2db3ced645 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -77,7 +77,7 @@ _xpg4_setrunelocale(encoding) /* * The "C" and "POSIX" locale are always here. */ - if (!strcmp(encoding, "C") || !strcmp(encoding, "POSIX")) { + if (!*encoding || !strcmp(encoding, "C") || !strcmp(encoding, "POSIX")) { _CurrentRuneLocale = &_DefaultRuneLocale; return(0); }