diff options
| author | David Chisnall <theraven@FreeBSD.org> | 2011-11-20 14:45:42 +0000 |
|---|---|---|
| committer | David Chisnall <theraven@FreeBSD.org> | 2011-11-20 14:45:42 +0000 |
| commit | 3c87aa1d3dc1d8dad3efad322852a8e1e76dee55 (patch) | |
| tree | 909189922493cddbeeac84af2e316dc897661311 /lib/libc/locale/setlocale.c | |
| parent | 9e134d91bf553c39d4590a9e373837326c465758 (diff) | |
Notes
Diffstat (limited to 'lib/libc/locale/setlocale.c')
| -rw-r--r-- | lib/libc/locale/setlocale.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index d6db1813d2a04..8cf8fd4fec91f 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -95,7 +95,7 @@ static char current_locale_string[_LC_LAST * (ENCODING_LEN + 1/*"/"*/ + 1)]; static char *currentlocale(void); static char *loadlocale(int); -static const char *__get_locale_env(int); +const char *__get_locale_env(int); char * setlocale(category, locale) @@ -278,13 +278,14 @@ loadlocale(category) if (func(new) != _LDP_ERROR) { (void)strcpy(old, new); + (void)strcpy(__xlocale_global_locale.components[category-1]->locale, new); return (old); } return (NULL); } -static const char * +const char * __get_locale_env(category) int category; { |
