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,6 +5,13 @@
#define LOCALE_NAME_MAX 15
struct __locale_map {
const void *map;
size_t map_size;
char name[LOCALE_NAME_MAX+1];
struct __locale_map *next;
};
int __setlocalecat(locale_t, int, const char *);
#define CURRENT_LOCALE \