summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-03-05 13:08:48 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-03-05 13:08:48 +0000
commitdc6a64b2e84e1d8faa4eef4552a215f000cc7a1d (patch)
treeb729ef837e799adc131941ab0a9ec4283cf7593a /lib/libc
parentcab169372f3d997751e9ba695c23567e252c836e (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setlocale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c
index 48cb1bb6da7d..d7b27504ce70 100644
--- a/lib/libc/locale/setlocale.c
+++ b/lib/libc/locale/setlocale.c
@@ -119,10 +119,10 @@ setlocale(category, locale)
* Now go fill up new_categories from the locale argument
*/
if (!*locale) {
- env = getenv(categories[category]);
+ env = getenv("LC_ALL");
if (category != LC_ALL && (!env || !*env))
- env = getenv(categories[LC_ALL]);
+ env = getenv(categories[category]);
if (!env || !*env)
env = getenv("LANG");