Re: pydoc3.5 borks on my Mac

2015-02-01 Thread Cameron Simpson
On 01Feb2015 14:17, Skip Montanaro wrote: On Sun, Feb 1, 2015 at 1:35 PM, Peter Otten <__pete...@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.getpreferredenco

Re: pydoc3.5 borks on my Mac

2015-02-01 Thread Skip Montanaro
On Sun, Feb 1, 2015 at 2:31 PM, Chris Angelico wrote: > Try the other variations: include the hyphen > but don't capitalize, and the other way around. On my system, all four > work equally: Yes, on my system, case doesn't matter, but the hyphen does. I just tried it out on one of my Linux system

Re: pydoc3.5 borks on my Mac

2015-02-01 Thread Chris Angelico
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 eq

Re: pydoc3.5 borks on my Mac

2015-02-01 Thread Skip Montanaro
On Sun, Feb 1, 2015 at 1:35 PM, Peter Otten <__pete...@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.ut

Re: pydoc3.5 borks on my Mac

2015-02-01 Thread Peter Otten
Skip Montanaro wrote: > On Sun, Feb 1, 2015 at 11:20 AM, Peter Otten <__pete...@web.de> wrote: >> Try setting the environment variable >> >> PYTHONIOENCODING=UTF-8 > > Thanks, but that didn't help. I still get the same exception. The pager is invoked by os.popen(), and after some digging I find

Re: pydoc3.5 borks on my Mac

2015-02-01 Thread Skip Montanaro
On Sun, Feb 1, 2015 at 11:20 AM, Peter Otten <__pete...@web.de> wrote: > Try setting the environment variable > > PYTHONIOENCODING=UTF-8 Thanks, but that didn't help. I still get the same exception. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: pydoc3.5 borks on my Mac

2015-02-01 Thread Peter Otten
Skip Montanaro wrote: > I finally got sort of smart, and started up a pydoc server. Looking at > the sqlite3 docs through my browser, I see right off the bat, I see > > #-*- coding: ISO-8859-1 -*- > # pysqlite2/__init__.py: the pysqlite2 package. > # > # Copyright (C) 2005 Gerhard Häring > > so

Re: pydoc3.5 borks on my Mac

2015-02-01 Thread Skip Montanaro
I finally got sort of smart, and started up a pydoc server. Looking at the sqlite3 docs through my browser, I see right off the bat, I see #-*- coding: ISO-8859-1 -*- # pysqlite2/__init__.py: the pysqlite2 package. # # Copyright (C) 2005 Gerhard Häring so my challenge is how to tell Python my te

pydoc3.5 borks on my Mac

2015-02-01 Thread Skip Montanaro
I build several versions of Python from Mercurial sources on a regular basis. I am starting on a new collection of programs for some database work and figured I should start using Python 3. I wanted to look something up quickly about the sqlite3 module, so I tried "pydoc sqlite3". That worked fine,