diff options
-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")) { |