void
i18n_init (void)
{
- setlocale (LC_CTYPE, "");
- setlocale (LC_COLLATE, "");
- setlocale (LC_MESSAGES, "");
-#if HAVE_LC_PAPER
- setlocale (LC_PAPER, "");
-#endif
+ setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, relocate(locale_dir));
textdomain (PACKAGE);
ok = false;
}
-
setlocale (LC_CTYPE, tmp);
free (tmp);
{
char radix_char;
- char *ol = xstrdup (setlocale (LC_NUMERIC, NULL));
- setlocale (LC_NUMERIC, "");
-
#if HAVE_NL_LANGINFO
radix_char = nl_langinfo (RADIXCHAR)[0];
#else
}
#endif
- /* We MUST leave LC_NUMERIC untouched, since it would
- otherwise interfere with data_{in,out} */
- setlocale (LC_NUMERIC, ol);
- free (ol);
return radix_char;
}