check that umlauts are properly recognized (locale supports UTF-8 properly)

This commit is contained in:
Enno Rehling 2008-08-19 19:53:05 +00:00
parent 9a037e2433
commit bd322436ab
1 changed files with 1 additions and 0 deletions

View File

@ -579,6 +579,7 @@ main(int argc, char *argv[])
lc_ctype = setlocale(LC_CTYPE, "");
lc_numeric = setlocale(LC_NUMERIC, "C");
assert(towlower(0xC4)==0xE4);
if (lc_ctype) lc_ctype = strdup(lc_ctype);
if (lc_numeric) lc_numeric = strdup(lc_numeric);