diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-03-02 12:45:52 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-03-02 12:45:52 +0000 |
| commit | 825d095dd3c17a63a6804cc2b41d47c95c0f1de0 (patch) | |
| tree | 5f0d45d88bc4d068fc05ae43aec3446277af830a /lib | |
| parent | 0d42ab242ed362fe8bc1a3d8b88600e68d2b69f0 (diff) | |
Notes
Diffstat (limited to 'lib')
| -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 ccae90607eac..825a2fb07c28 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -124,10 +124,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"); |
