Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85026
| References | (1 earlier) <CANc-5Uz7QXgF=pTAz++9cuDSm_JYiRAdsy55VZnioY_R5rGgZw@mail.gmail.com> <maln83$iga$1@ger.gmane.org> <CANc-5UwioovOz6Ydf5VPAxwRPfBWRLX7p5UBQecm9zFbwma5ng@mail.gmail.com> <malv6b$fo7$1@ger.gmane.org> <CANc-5UyODbW=idsgyT9rK2hzPFLnU7_sDO1V9fR+-9mk+nMovw@mail.gmail.com> |
|---|---|
| Date | 2015-02-02 07:31 +1100 |
| Subject | Re: pydoc3.5 borks on my Mac |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.18376.1422822723.18130.python-list@python.org> (permalink) |
On Mon, Feb 2, 2015 at 7:17 AM, Skip Montanaro <skip.montanaro@gmail.com> 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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: pydoc3.5 borks on my Mac Chris Angelico <rosuav@gmail.com> - 2015-02-02 07:31 +1100
csiph-web