centowen / pybaduk

Software for organising go tournaments.
GNU General Public License v3.0
3 stars 0 forks source link

Locale not working for sort on windows #11

Open varenius opened 9 years ago

varenius commented 9 years ago

Reading system locale seems to work on Linux, the sorting properly sorts Å, Ä, Ö on a swedish system. But, running the same code on windows seems to fail. Python complains that it cannot set the locale to sv_SE or similar things. This is strange, and setting the locale to "swedish" instead works, but seem to find a windows specific thing ending in a windows codepage numner 1252. This should be fixed so that the same code will correctly load the desired locale setting on all systems.