[lfs-dev] manpage of ifup is not the manpage format.

xinglp xinglp at gmail.com
Wed May 9 23:58:44 PDT 2012


2012/4/19 Bruce Dubbs <bruce.dubbs at gmail.com>:
> xinglp wrote:
>> 在 2012年4月11日 下午11:13,Bruce Dubbs <bruce.dubbs at gmail.com> 写道:
>>> xinglp wrote:
>>>> There are somethings else in other manpages, I think they are some
>>>> kinds of format.
>>> No, it's ascii, not the more common troff format.  That's valid but just does
>>> not have things like bold available.
>
>> Yes, I know it.
>> But on a local console (with en_US.utf8 locale), when use man ifup, it
>> display "-" to a "block", like █
>
> That doesn't make any sense.  The dash characters are 0x2d and utf8 is identical
> to ascii for the first 128 characters.
>
> Try setting an environment variable LESSCHARSET=latin1

Sorry for long time not response.

I've tried "LESSCHARSET=latin1 man ifup", it show some things like below.

------------------------------------------------------------------
ifup(8)
NAME
        ifup █ <80><90> bring a network interface up
------------------------------------------------------------------
Also the "mkdir -v aaa" show "mkdir: created directory █aaa█",
other than " mkdir: created directory 'aaa' "

Everythings is displayed well when through putty, but on a "local
console" it not work well.

Then, I tried to figure out this.
I note than it show " mkdir: created directory ‘aaa’ " , but not  "
mkdir: created directory 'aaa' "

Show them in hex
mkdir -v aaa|view - -c '%!xxd'
0000000: 6d6b 6469 723a 2063 7265 6174 6564 2064  mkdir: created d
0000010: 6972 6563 746f 7279 20e2 8098 6161 61e2  irectory ...aaa.
0000020: 8099 0a                                  ...

The single quotes is:
e2 80 98
e2 80 99

The dash character in /usr/share/man/man8/ifdown.8 is 0x2d ,
but use  man ifup|view - -c '%!xxd' , the dash character is
e2 80 90

Then, I think the "local console" can not display those utf8 character.
But I remember in ealier time, my lfs works well of show those character.

Now, I fix it by this configure file
/etc/sysconfig/console
FONT="lat1-16 -m 8859-1"
UNICODE=yes


>
>   -- Bruce
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page



More information about the lfs-dev mailing list