implement locale file loading and state for remaining locale categories

there is still no code which actually uses the loaded locale files, so
the main observable effect of this commit is that calls to setlocale
store and give back the names of the selected locales for the
remaining categories (LC_TIME, LC_COLLATE, LC_MONETARY) if a locale
file by the requested name could be loaded.
This commit is contained in:
Rich Felker
2014-07-24 03:23:11 -04:00
parent 674e28af2d
commit 6cb4f91db7
4 changed files with 80 additions and 2 deletions

View File

@ -5,9 +5,12 @@
#include <stdio.h>
#include <limits.h>
struct __locale_map;
struct __locale_struct {
int ctype_utf8;
char *messages_name;
struct __locale_map *cat[4];
};
struct __libc {