Author cben
Recipients
Date 2004-08-15.01:35:41
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
There are non-ASCII chars in pydoc.__credits__ (the
"o/" in "Mynd you, mo/o/se bites Kan be pretty
nasti...").  In 2.3, a locale declaration of Latin-1
was added to pydoc.py.  So now Python does not complain
-- but a string object (carrying no encoding info) with
Latin-1 bytes is still created and anynoby running in a
non-Latin-1 locale will not interpret the string correctly.
The patch fixes it by making pydoc.__credits__ a
Unicode string.  *Note that this may break code* that
prints pydoc.__credits__ (in locales that can't encode
it) or otherwise assumes it's a string.  Not that such
code exists anywhere...
Wait, ``import pydoc; help(pydoc)`` in "C" locale now
crashes <wink>!  This is too ironic, IMHO, *don't
commit* until pydoc learns to handle unicode robustly...
History
Date User Action Args
2007-08-23 15:39:23adminlinkissue1009389 messages
2007-08-23 15:39:23admincreate