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

commit b3de144ba0d94136db9fc5acba448253fcb2b774
Author: James Buren <[email protected]>
Date:   Tue Dec 4 08:45:18 2012 -0600

call setlocale so the running environment's locale is brought into effect.

diff --git a/src/local.h b/src/local.h
index 7787818..6134f23 100644
--- a/src/local.h
+++ b/src/local.h
@@ -17,6 +17,7 @@
#include <limits.h>
#include <glob.h>
#include <regex.h>
+#include <locale.h>
#include "text.h"

#define LOGFILE "/var/log/fwsetup.log"
diff --git a/src/main.c b/src/main.c
index 9c13dd6..c1b0d2d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -13,6 +13,13 @@ extern int main(int argc,char **argv)
return EXIT_FAILURE;
}

+  if(setlocale(LC_ALL,"") == 0)
+  {
+    perror("main");
+
+    return EXIT_FAILURE;
+  }
+
logfile = fopen(LOGFILE,"a");

if(logfile == 0)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to