This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, ocean-city
Date 2008-09-30.23:52:04
SpamBayes Score 3.19129e-07
Marked as misclassified No
Message-id <>
I think that your patch works only for terminals where one byte of the 
encoded text is displayed as one character on the terminal. This is not 
true for utf-8 terminals, for example.

In the attached patch, I tried to write some unit tests, (I had to adapt 
the traceback module as well), and one test still fails because the 
captured stderr has a utf-8 encoding.
I think that it's better to count unicode characters.
Date User Action Args
2008-09-30 23:52:08amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, ocean-city
2008-09-30 23:52:08amaury.forgeotdarcsetmessageid: <>
2008-09-30 23:52:07amaury.forgeotdarclinkissue2382 messages
2008-09-30 23:52:06amaury.forgeotdarccreate