From 6eee268d676545dbd278a3f78afaca1060845fd3 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 4 Sep 2000 03:43:24 +0000 Subject: The comparison against 0 should be against LC_ALL. category isn't a boolean and it is LC_ALL that's special. Someone submitted this to me a long time ago, but I can't find the mail now. --- lib/libc/locale/setlocale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index f5f5fae..daea2bc 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -173,7 +173,7 @@ setlocale(category, locale) } } - if (category) + if (category != LC_ALL) return (loadlocale(category)); for (i = 1; i < _LC_LAST; ++i) { -- cgit v1.1