Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70695
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'url:msdn': 0.07; 'aliases': 0.09; 'assumed': 0.09; 'locale': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:skip:a 10': 0.09; 'jan': 0.12; 'language.': 0.14; 'windows': 0.15; 'hint': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'suggestion.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'seems': 0.21; 'example': 0.22; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'skip:l 30': 0.24; 'second': 0.26; 'supported': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'subject:list': 0.30; "skip:' 10": 0.31; 'work:': 0.31; 'open': 0.33; 'checking': 0.33; 'guess': 0.33; "i'd": 0.34; 'could': 0.34; 'something': 0.35; 'there': 0.35; 'similar': 0.36; 'should': 0.36; 'url:microsoft': 0.37; 'same.': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'received:173': 0.61; "you're": 0.61; 'first': 0.61; 'name': 0.63; 'kind': 0.63; 'url:en-us': 0.68; 'link:': 0.72; 'received:fios.verizon.net': 0.84; 'mistake': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: Sorting list alphabetically |
| Date | Mon, 28 Apr 2014 17:11:29 -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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-173-75-254-207.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
| In-Reply-To | <ljkso1$87q$1@ger.gmane.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9560.1398719544.18130.python-list@python.org> (permalink) |
| Lines | 34 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1398719544 news.xs4all.nl 2924 [2001:888:2000:d::a6]:33250 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:70695 |
Show key headers only | 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
Re: Sorting list alphabetically Terry Reedy <tjreedy@udel.edu> - 2014-04-28 17:11 -0400
csiph-web