URL:
  <http://gna.org/patch/?7022>

                 Summary: Cleanup Windows language setup
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Mon 29 Feb 2016 02:58:08 PM EET
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0, 3.0.0

    _______________________________________________________

Details:

Currently, in case of Windows, init_nls() calls get_langname() to get the
language to use and then puts that to LANG environment variable.
By default, get_langname() gets the value from the LANG environment variable,
so the sum of windows actions is to read environment variable and then to
overwrite (or at least try to) that variable with the same value.
Only if the environment variable is not set, there's some Windows specific
code to get suitable langname to return. (which has at least one language
setup wrong; we no longer have separate 'no' translation)

Attached patch renames get_langname() as setup_langname() and it takes care of
setting up the environment variable also in those situations where it's not
already correct. Caller does not touch environment any more.





    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?7022>

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to