Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70695 > unrolled thread
| Started by | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2014-04-28 17:11 -0400 |
| Last post | 2014-04-28 17:11 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Sorting list alphabetically Terry Reedy <tjreedy@udel.edu> - 2014-04-28 17:11 -0400
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-04-28 17:11 -0400 |
| Subject | Re: Sorting list alphabetically |
| Message-ID | <mailman.9560.1398719544.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web