Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=51b48d3750f97e652aac009012b5ee42fc8f048b

commit 51b48d3750f97e652aac009012b5ee42fc8f048b
Author: James Buren <[email protected]>
Date:   Fri Mar 1 06:21:52 2013 -0600

move setlocale to locale module

diff --git a/new/fwsetup/locale.c b/new/fwsetup/locale.c
index 39087b1..60b660d 100644
--- a/new/fwsetup/locale.c
+++ b/new/fwsetup/locale.c
@@ -137,6 +137,12 @@ static bool locale_run(void)
if(!locale_do_other_locales())
return false;

+  if(setlocale(LC_ALL,"") == 0)
+  {
+    error(strerror(errno));
+    return false;
+  }
+
return true;
}

diff --git a/new/fwsetup/main.c b/new/fwsetup/main.c
index 3fd69c1..dfe43dd 100644
--- a/new/fwsetup/main.c
+++ b/new/fwsetup/main.c
@@ -32,13 +32,6 @@ extern int main(int argc,char **argv)

seed = time(0);

-  if(setlocale(LC_ALL,"") == 0)
-  {
-    perror("main");
-
-    return EXIT_FAILURE;
-  }
-
remove(LOGFILE);

logfile = fopen(LOGFILE,"a");
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to