> Another option would be to change groff such that we can write
>
> NROFF /usr/local/bin/groff -Tlocale -mandoc
>
> and then groff would have to do the check for UTF-8 locale (as
> described on the above URL) and output in the appropriate encoding,
> or even better
>
> NROFF /usr/local/bin/groff -Twlocale -mandoc
>
> would cause groff to output everything using glibc 2.2's wide
> character functions. The latter solution would automatically
> support not only UTF-8 but any multibyte encoding and
> transliteration, but might involve a bit more implementation work.
It's not clear to me why groff should do provide the correct -T
option. Additionally, you can't expect glibc 2.2 on all platforms,
and I don't like `extensions' which only work with a specific
C library.
I would rather favor something like
NROFF /usr/local/bin/groff -Tutf8 -mandoc | iconv <options>
and let iconv do the dirty work of conversion.
Werner
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/