locale stuff should use libc safe lmalloc. Other fixes from tests.
*** 49,58 **** --- 49,59 ---- char l_lname[ENCODING_LEN+1]; /* locale name */ void *l_data[NLOCDATA]; /* storage area */ void *l_map; /* mapped file */ size_t l_map_len; struct locdata *l_next; /* link cached list */ + int l_cached; /* nonzero if cached */ }; struct locale { struct locdata *locdata[LC_ALL];