Enlightenment CVS committal Author : xcomputerman Project : e17 Module : apps/entrance
Dir : e17/apps/entrance/src/client Modified Files: main.c Log Message: Explicit locale support. Should this be in ecore? =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/main.c,v retrieving revision 1.67 retrieving revision 1.68 diff -u -3 -r1.67 -r1.68 --- main.c 27 Dec 2004 06:45:14 -0000 1.67 +++ main.c 1 Jan 2005 22:40:13 -0000 1.68 @@ -8,6 +8,7 @@ #include <unistd.h> #include <getopt.h> #include <string.h> +#include <locale.h> #include <Edje.h> #include <Esmart/Esmart_Text_Entry.h> #include <Esmart/Esmart_Container.h> @@ -628,6 +629,13 @@ if (!ecore_init()) return (-1); ecore_app_args_set(argc, (const char **) argv); + + /* Set locale to user's environment */ + if(!(setlocale(LC_ALL, ""))) + fprintf(stderr, "Locale set failed!\n" + "Please make sure you have your locale files installed for \"%s\"\n", + getenv("LANG")); + /* Parse command-line options */ while (1) ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs