Follow-up Comment #7, bug #8807 (project wesnoth):

After some more digging I found this:
In language.cpp this code is executed:
142 #ifdef _WIN32
143   std::string win_locale(locale, 0, 2);
144   #include "language_win32.ii"
145   if(category == LC_MESSAGES) {
146     std::string env = "LANG=" + locale;
147     _putenv(env.c_str());
148     SetEnvironmentVariable("LANG", win_locale.c_str());
149     return;
150   }
151   locale = win_locale;
152 #endif
Runtime this results in:
_putenv("LANG=fr_FR") which is just a fancy wrapper for
SetEnvironmentVariableA("LANG", "fr_FR") and then
SetEnvironmentVariableA("LANG", "French")
Unfortunately there are no comments and it's a mystery what this code is
supposed to do. Why the _putenv call? It gets ignored. I've tried to skip
either call, but it doesn't result in any interesting effects, other than that
if you skip the second call you can see the environment variable LANG change
to fr_FR instead of French. And what's that return statement doing there?

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?8807>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to