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.
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.