Tartarus CVS: halibut: simon
tartarus-commits@lists.tartarus.org
tartarus-commits@lists.tartarus.org
Thu, 22 Apr 2004 18:47:30 +0100
CVS Root: /home/cvs
Module: halibut
Changes by: simon
Date: Thu Apr 22 2004 18:47:30 BST
Log message:
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.
Modified files:
. : Makefile bk_info.c bk_text.c halibut.h main.c
Added files:
. : wcwidth.c
Links:
http://cvs.tartarus.org//halibut/Makefile.diff?r1=1.21&r2=1.22
http://cvs.tartarus.org//halibut/bk_info.c.diff?r1=1.10&r2=1.11
http://cvs.tartarus.org//halibut/bk_text.c.diff?r1=1.28&r2=1.29
http://cvs.tartarus.org//halibut/halibut.h.diff?r1=1.21&r2=1.22
http://cvs.tartarus.org//halibut/main.c.diff?r1=1.29&r2=1.30
http://cvs.tartarus.org//halibut/wcwidth.c?rev=1.1&content-type=text/vnd.viewcvs-markup