Issue1009389
Created on 2004-08-15 01:35 by cben, last changed 2005-03-03 15:31 by mwh.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
PYDOC-CREDITS-UNICODE.diff
|
cben,
2004-08-15 01:35
|
A Right Thing that breaks help(pydoc) no some locales! |
|
|
|
msg46703 - (view) |
Author: Cherniavsky Beni (cben) |
Date: 2004-08-15 01:35 |
|
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...
|
|
msg46704 - (view) |
Author: Martin v. Löwis (loewis) |
Date: 2004-08-22 16:08 |
|
Logged In: YES
user_id=21627
Thanks for the patch. Committed as pydoc.py 1.96.
|
|
msg46705 - (view) |
Author: Cherniavsky Beni (cben) |
Date: 2004-11-14 01:39 |
|
Logged In: YES
user_id=36166
I told you not to commit! Now ``pydoc.py pydoc`` crashes.
Patch 1065986 fixes this.
|
|
msg46706 - (view) |
Author: Martin v. Löwis (loewis) |
Date: 2004-11-14 10:21 |
|
Logged In: YES
user_id=21627
Ok, I have now backed-out the patch again.
|
|
msg46707 - (view) |
Author: Ka-Ping Yee (ping) |
Date: 2004-11-17 11:44 |
|
Logged In: YES
user_id=45338
I'm so sorry this has caused so much trouble.
The silly moose comment is my fault; it can just be removed.
|
|
msg46708 - (view) |
Author: Georg Brandl (georg.brandl) |
Date: 2005-03-03 15:05 |
|
Logged In: YES
user_id=1188172
The moose comment has been removed; the patch should be
closed as "out of date".
|
|
msg46709 - (view) |
Author: Michael Hudson (mwh) |
Date: 2005-03-03 15:31 |
|
Logged In: YES
user_id=6656
Done!
|
|
| Date |
User |
Action |
Args |
| 2004-08-15 01:35:41 | cben | create | |
|