summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-05 17:31:17 +0000
committerache <ache@FreeBSD.org>1995-08-05 17:31:17 +0000
commite6be3172f8087d076f4e409cad193dfcee2ffa15 (patch)
tree7be7f88dce5d4b45683fe752dd196f286541834f /lib/libc/locale
parentc95012c29f64ba44283ad5c5085339ed872c4f20 (diff)
downloadFreeBSD-src-e6be3172f8087d076f4e409cad193dfcee2ffa15.zip
FreeBSD-src-e6be3172f8087d076f4e409cad193dfcee2ffa15.tar.gz
Add time locale loading
Diffstat (limited to 'lib/libc/locale')
-rw-r--r--lib/libc/locale/startup_setlocale.c8
1 files changed, 8 insertions, 0 deletions
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")) {
OpenPOWER on IntegriCloud