Martin v. Löwis <mar...@v.loewis.de> added the comment: >> I'm -1 on using wcswidth, though. > > When you write text into a console on Linux (e.g. displayed by > gnome-terminal or konsole), I suppose that wcswidth() can be used to > compute the width of a line. It would help to fix #2382. > > Or do you think that wcswidth() gives the wrong result for this use > case?
No, I think that using it is not necessary. If you want to compute the width of a line, use unicodedata.east_asian_width. And yes, wcswidth may sometimes produce "incorrect" results (although it's probably correct most of the time). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12568> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com