Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=3cc49381ac1b4e36597bbf065f6fdfc2ffb4c35e
commit 3cc49381ac1b4e36597bbf065f6fdfc2ffb4c35e Author: James Buren <[email protected]> Date: Fri Mar 1 05:49:49 2013 -0600 setup LANG locale from module diff --git a/new/fwsetup/locale.c b/new/fwsetup/locale.c index d1e54af..b1dedb7 100644 --- a/new/fwsetup/locale.c +++ b/new/fwsetup/locale.c @@ -64,11 +64,31 @@ static bool locale_setup(void) return true; } +static bool locale_do_locale(void) +{ + const char *var = "LANG"; + char *locale = 0; + + if(!ui_window_locale(var,locales,&locale)) + return false; + + if(setenv(var,locale,true) == -1) + { + error(strerror(errno)); + return false; + } + + return true; +} + static bool locale_run(void) { if(!locale_setup()) return false; + if(!locale_do_locale()) + return false; + return true; } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
