diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-03-05 13:08:48 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-03-05 13:08:48 +0000 |
| commit | dc6a64b2e84e1d8faa4eef4552a215f000cc7a1d (patch) | |
| tree | b729ef837e799adc131941ab0a9ec4283cf7593a /lib/libc | |
| parent | cab169372f3d997751e9ba695c23567e252c836e (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/locale/setlocale.c | 4 |
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"); |
