summaryrefslogtreecommitdiff
path: root/wcwidth.c (follow)
Commit message (Collapse)AuthorAge
* bk_text and bk_info both need to know the on-screen width ofSimon Tatham2004-04-22
characters in order to wrap and align them properly. Therefore, they should be using wcwidth(). So here are a couple of wrappers on wcwidth(), one which filters out the Unicode characters not representable in the target charset, and one which converts _from_ a charset to Unicode before calling wcwidth(). bk_text and bk_info should now align correctly even in the face of unsupported characters and Japanese. [originally from svn r4116]