From e6be3172f8087d076f4e409cad193dfcee2ffa15 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 5 Aug 1995 17:31:17 +0000 Subject: Add time locale loading --- lib/libc/locale/startup_setlocale.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/libc/locale/startup_setlocale.c b/lib/libc/locale/startup_setlocale.c index cfacf8b..3f6da49 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")) { -- cgit v1.1