Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70695

Re: Sorting list alphabetically

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Sorting list alphabetically
Date 2014-04-28 17:11 -0400
References <CA+FnnTxrzOv6_yXymgW1Qd2Rp6gWeNssv=FvJvhSUcwkHSuy5g@mail.gmail.com> <ljimq9$vkj$1@ger.gmane.org> <ljjqfr$h29$1@ger.gmane.org> <ljkso1$87q$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.9560.1398719544.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 4/28/2014 2:33 AM, Kev Dwyer wrote:

> Hello Terry,
>
> Regarding your second point, my mistake in not checking the link:
> I'd seen a similar one elsewhere and assumed they were the same.
>
> This link should work:
> http://msdn.microsoft.com/en-us/library/hzz3tw78
>
>
> As to your first point, you're right, it seems setlocale(locale.LC_ALL,
> 'en_US.UTF-8') doesn't work on Windows.

 From what I read of the link above and
http://msdn.microsoft.com/en-US/goglobal/bb896001.aspx
given therein, I am going to guess that .UTF-8 is not supported for any 
language.

> It seems the locale name needs to be one of the aliases provided
> at http://msdn.microsoft.com/en-us/library/39cwe7zf, so for example
> locale.setlocale(locale.LC_ALL, 'usa') returns
> 'English_United States.1252'.
>
> Do you know if this is something people programming on Windows
> should just be aware of, or is there a case for a hint of some
> kind in the locale module documentation?

*Definitely the latter. Perhaps you could open an issue with a specific 
suggestion.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Sorting list alphabetically Terry Reedy <tjreedy@udel.edu> - 2014-04-28 17:11 -0400

csiph-web