Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python3': 0.07; 'latter': 0.09; 'skip:> 40': 0.09; 'cc:addr:python-list': 0.11; 'bug': 0.12; '>on': 0.16; 'encodings': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'simpson': 0.16; 'wrote:': 0.18; 'skip:p 40': 0.19; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'header:User-Agent:1': 0.23; 'skip': 0.24; 'unicode': 0.24; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.27; 'feature': 0.29; 'that.': 0.31; 'supposed': 0.32; 'charset:us- ascii': 0.36; 'pm,': 0.38; 'you.': 0.62; 'content- disposition:inline': 0.62; 'to:addr:gmail.com': 0.65; '2015': 0.84; 'otten': 0.84; 'received:192.168.15': 0.84 Date: Mon, 2 Feb 2015 09:09:43 +1100 From: Cameron Simpson To: Skip Montanaro Subject: Re: pydoc3.5 borks on my Mac MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) References: Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422828595 news.xs4all.nl 2918 [2001:888:2000:d::a6]:50735 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85032 On 01Feb2015 14:17, Skip Montanaro wrote: >On Sun, Feb 1, 2015 at 1:35 PM, Peter Otten <__peter__@web.de> wrote: >> $ LANG=en_US.UTF-8 python3 -c 'import locale; print(locale.getpreferredencoding(False))' > >Aha! > >hgpython% LANG=en_US.UTF-8 python3.5 -c 'import locale; >print(locale.getpreferredencoding(False))' >UTF-8 >hgpython% LANG=en_US.utf8 python3.5 -c 'import locale; >print(locale.getpreferredencoding(False))' >US-ASCII > >Thank you. I always thought these Unicode encodings were supposed to >be case-insensitive. The latter lacks a dash. See if it's that. Cheers, Cameron Simpson A feature is a bug with seniority.