now --lang works (must not use stale pointers)

This commit is contained in:
Albert Cahalan 2009-11-21 21:17:19 +00:00
parent f296909c75
commit 1c980026f0
2 changed files with 19 additions and 2 deletions

View file

@ -741,6 +741,7 @@ static void do_locale_option(const char *const arg)
int setup_i18n(const char *restrict lang, const char *restrict locale)
{
printf("lang %p, locale %p\n", lang, locale);
printf("lang \"%s\", locale \"%s\"\n", lang, locale);
if(lang)
set_langstr(lang);