Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_intl.c Log Message: Don't modify users env if the user already has LANG =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_intl.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- e_intl.c 14 Apr 2005 02:50:52 -0000 1.12 +++ e_intl.c 14 Apr 2005 05:32:10 -0000 1.13 @@ -60,14 +60,14 @@ void e_intl_language_set(const char *lang) { - char buf[4096]; - if (_e_intl_language) free(_e_intl_language); if (!lang) lang = getenv("LANG"); - if (!lang) lang = "en"; + if (!lang) + { + setenv("LANG", "en", 1); + lang = "en"; + } _e_intl_language = strdup(lang); - snprintf(buf, sizeof(buf), "LANG=%s", _e_intl_language); - putenv(buf); setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALE_DIR); textdomain(PACKAGE); ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs