mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Add time locale loading
This commit is contained in:
parent
8936e636af
commit
e20b74fb9e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9927
@ -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")) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user