bk_text and bk_info both need to know the on-screen width of
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 22 Apr 2004 17:47:28 +0000 (17:47 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 22 Apr 2004 17:47:28 +0000 (17:47 +0000)
commite5cd393faa334825e69833ba2996cbcac9f2957d
treeabe0666dfd240e8441e820ed876bdc2d23e1d7d3
parent7e976207d0b19baf112b216d64a8cf6a8af1069f
bk_text and bk_info both need to know the on-screen width of
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.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@4116 cda61777-01e9-0310-a592-d414129be87e
Makefile
bk_info.c
bk_text.c
halibut.h
main.c
wcwidth.c [new file with mode: 0644]