[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: multibyte character support on groff (Re: [fpolacco@debian.org: Installed groff 1.16-0 (source i386)])



At Thu, 22 Jun 2000 17:01:01 +0100,
Edmund GRIMLEY EVANS <edmundo@rano.org> wrote:
> 
> Fumitoshi UKAI <ukai@debian.or.jp>:
> 
> > I just read groff-1.16 source code, it has no code to handle utf-8 input.
> 
> It shouldn't. There is code in glibc for handling UTF-8, and other
> multibyte encodings. Programs should use wchar_t and mbtowc(), etc.

Then we need more and more work to support UTF-8 in groff-1.16.
I can say that current groff-1.16 implementation is not UTF-8 ready.
For example, see src/roff/troff/{token.h,input.cc}.  It uses
`unsigned char c;' to hold character. (and 'wchar wc;' in #ifdef NIPPON)

Regards,
Fumitoshi UKAI



Reply to: