NetBSD-Users archive

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

Re: Is there a navbar for the html manpages?



On Sat, Aug 03, 2024 at 10:09:00AM +0000, Van Ly wrote:
> 
> I see no difference using either
> 
>   $ LC_ALL=en_US.UTF-8 xman 
>   $ LANG=en_US.UTF-8 xman

You are right. I used en_US.UTF8 which isn't recognized as a valid
locale, and then it "works" by falling back to "C". This should be
good enough for the regular man pages, that are written in ASCII.

The man pages are passed through eqn | tbl | nroff -mandoc. nroff
produces UTF-8 characters (like the dashes) if the locale is set
to UTF-8, but xman renders the text with XDrawString that doesn't
understand UTF-8.

xman could use the selected font encoding to distinguish between
ascii and utf-8 and then use the appropriate render function
(Xutf8DrawString for the utf-8 case).


Greetings,
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index