Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=247df51c34b0ef9a3760367d5546e9222d4919e8
commit 247df51c34b0ef9a3760367d5546e9222d4919e8 Author: James Buren <[email protected]> Date: Sat Mar 2 07:42:53 2013 -0600 remove all excess comments from written locale.conf localectl removes all this when it is used to change these so, why write them in the first place? diff --git a/new/fwsetup/postconfig.c b/new/fwsetup/postconfig.c index b22b5d8..570fd46 100644 --- a/new/fwsetup/postconfig.c +++ b/new/fwsetup/postconfig.c @@ -62,13 +62,6 @@ static bool write_locale_conf(void) } fprintf(file, - "# /etc/locale.conf\n" - "# The system wide locale(s) is defined below.\n" - "# For a complete list of supported locales, run this shell command:\n" - "# locale -a\n" - "#\n" - "# For more information on locales, read locale man page 7.\n" - "\n" "LANG=%s\n", locale ); @@ -78,13 +71,11 @@ static bool write_locale_conf(void) var = vars[i]; if((locale = getenv(var)) == 0 || strlen(locale) == 0) - fprintf(file,"#%s=\n",var); - else - fprintf(file,"%s=%s\n",var,locale); + continue; + + fprintf(file,"%s=%s\n",var,locale); } - fprintf(file,"#LANGUAGE=\n"); - fclose(file); return true; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
