Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.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.033 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'installed.': 0.07; 'utf-8': 0.07; 'cc:addr:python-list': 0.11; 'encodings': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'skip:p 40': 0.19; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'unicode': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'too.': 0.31; 'probably': 0.32; 'supposed': 0.32; 'maybe': 0.34; "i'd": 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'so,': 0.37; 'system,': 0.38; 'thank': 0.38; 'does': 0.39; 'around.': 0.60; 'you.': 0.62; '2015': 0.84; 'not:': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=6nJDTn30rn+C2i7o8+lqPADSqINKRfE9Sz3zgkejRgA=; b=eEyE9eB6wAsTmIw5ozFBOiX1OQNdQ8uFcOWJ03xEQQqmim1gH2CY6HCQDc+69vqQls rMAqAePL9PwN6CiyuC4rsPnbl4E770j+dGVYZXZhX87tzdOjWwps/1jy0vlP50CmH2pC +QssVv3Mg+Og72KsJn8yxJvirtrtPJt4AMBfxrkXP4f+XKcpSBn3PNzDGbgFHD5DSqwi xrMtB13pr+i2f561dWesfUIU8aebBaiaB1+m0DZ3Q3SllvhSi/FhbOOiGFP0njU438uC pTnD7jmIQz508sQa2vdlLtxnmXkU6uo07KWws9WYnJxphNSfWUUiyMRmiQP/lle+Ktoh /20A== MIME-Version: 1.0 X-Received: by 10.50.18.108 with SMTP id v12mr8287929igd.34.1422822715736; Sun, 01 Feb 2015 12:31:55 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Feb 2015 07:31:55 +1100 Subject: Re: pydoc3.5 borks on my Mac From: Chris Angelico Cc: Python Content-Type: text/plain; charset=UTF-8 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: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422822723 news.xs4all.nl 2885 [2001:888:2000:d::a6]:48473 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85026 On Mon, Feb 2, 2015 at 7:17 AM, Skip Montanaro wrote: > Thank you. I always thought these Unicode encodings were supposed to > be case-insensitive. I'd have thought so, too. Try the other variations: include the hyphen but don't capitalize, and the other way around. On my system, all four work equally: rosuav@sikorsky:~$ echo $LANG en_AU.UTF-8 rosuav@sikorsky:~$ LANG=en_AU.utf8 python3.5 -c 'import locale; print(locale.getpreferredencoding(False))' UTF-8 rosuav@sikorsky:~$ LANG=en_AU.utf-8 python3.5 -c 'import locale; print(locale.getpreferredencoding(False))' UTF-8 rosuav@sikorsky:~$ LANG=en_AU.UTF8 python3.5 -c 'import locale; print(locale.getpreferredencoding(False))' UTF-8 rosuav@sikorsky:~$ LANG=en_AU.UTF-8 python3.5 -c 'import locale; print(locale.getpreferredencoding(False))' UTF-8 However, and very interestingly, en_US does not: rosuav@sikorsky:~$ LANG=en_US.UTF-8 python3.5 -c 'import locale; print(locale.getpreferredencoding(False))' ANSI_X3.4-1968 Which is probably because I don't have US locales installed. Maybe there's something about exactly what's installed?? ChrisA