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 vstinner
Recipients inigoserna, vstinner
Date 2011-07-14.22:43:56
SpamBayes Score 7.516318e-07
Marked as misclassified No
Message-id <1310683436.9.0.375403702242.issue12568@psf.upfronthosting.co.za>
In-reply-to
Content
Some characters take more than one column in a terminal, especially CJK (chinese, japanese, korean) characters. If you use such character in a terminal without taking care of the width in columns of each character, the text alignment can be broken. Issue #2382 is an example of this problem.

#2382 and #6755 have patches implementing such function:
- unicode_width.patch of #2382 adds unicode.width() method
- ucs2w.c of #6755 creates a new ucs2w module with two functions: unichr2w() (width of a character) and ucs2w() (width of a string)

Use test_ucs2w.py of #6755 to test these new functions/methods.
History
Date User Action Args
2011-07-14 22:43:56vstinnersetrecipients: + vstinner, inigoserna
2011-07-14 22:43:56vstinnersetmessageid: <1310683436.9.0.375403702242.issue12568@psf.upfronthosting.co.za>
2011-07-14 22:43:56vstinnerlinkissue12568 messages
2011-07-14 22:43:56vstinnercreate