Add time locale loading

This commit is contained in:
ache 1995-08-05 17:31:17 +00:00
parent fbeb0513d8
commit 8fb053d8f3

View File

@ -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")) {