Message74106
| Author |
amaury.forgeotdarc |
| Recipients |
amaury.forgeotdarc, ocean-city |
| Date |
2008年09月30日.23:52:04 |
| SpamBayes Score |
3.191293e-07 |
| Marked as misclassified |
No |
| Message-id |
<1222818728.09.0.227952318428.issue2382@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年09月30日 23:52:08 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, ocean-city |
| 2008年09月30日 23:52:08 | amaury.forgeotdarc | set | messageid: <1222818728.09.0.227952318428.issue2382@psf.upfronthosting.co.za> |
| 2008年09月30日 23:52:07 | amaury.forgeotdarc | link | issue2382 messages |
| 2008年09月30日 23:52:06 | amaury.forgeotdarc | create |
|