Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85026 > unrolled thread
| Started by | Chris Angelico <rosuav@gmail.com> |
|---|---|
| First post | 2015-02-02 07:31 +1100 |
| Last post | 2015-02-02 07:31 +1100 |
| 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: pydoc3.5 borks on my Mac Chris Angelico <rosuav@gmail.com> - 2015-02-02 07:31 +1100
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-02-02 07:31 +1100 |
| Subject | Re: pydoc3.5 borks on my Mac |
| Message-ID | <mailman.18376.1422822723.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web