diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-05 17:31:17 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-05 17:31:17 +0000 |
commit | e20b74fb9efc1651710fada50ea2c4ac5adcd6c9 (patch) | |
tree | 7be7f88dce5d4b45683fe752dd196f286541834f /lib/libc | |
parent | 8936e636afeb920e99879acfb6ea59e206364039 (diff) | |
download | src-e20b74fb9efc1651710fada50ea2c4ac5adcd6c9.tar.gz src-e20b74fb9efc1651710fada50ea2c4ac5adcd6c9.zip |
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/startup_setlocale.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/locale/startup_setlocale.c b/lib/libc/locale/startup_setlocale.c index cfacf8bdc9c5..3f6da49c4775 100644 --- a/lib/libc/locale/startup_setlocale.c +++ b/lib/libc/locale/startup_setlocale.c @@ -131,6 +131,14 @@ loadlocale(category) return (current_categories[LC_COLLATE]); } + if (category == LC_TIME) { + if (__time_load_locale(new_categories[LC_TIME]) < 0) + return (NULL); + (void)strcpy(current_categories[LC_TIME], + new_categories[LC_TIME]); + return (current_categories[LC_TIME]); + } + if (!strcmp(new_categories[category], "C") || !strcmp(new_categories[category], "POSIX")) { |