View previous topic :: View next topic |
Author |
Message |
Shadow Monkey n00b
Joined: 15 Dec 2004 Posts: 12
|
Posted: Wed Jun 01, 2005 2:09 pm Post subject: A problem with man and UTF-8 |
|
|
Since I switched to an UTF-8 locale, I had had some issues, solved some issues,
but this one is rather strange. I removed -Tlatin1 from the lines in /etc/man.conf
and a problem ocurred when viewing various manpages (even the ones that look
like they were ascii). The dashes and some other symbols are shown as some strange
char sequences when I do man <manpage> (dash - I mean "‐" - for example is Bc` ). The funny part
is when I do man <manpage>|less every thing is shown correctly. An idea what to do ? |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Wed Jun 01, 2005 7:26 pm Post subject: |
|
|
Have you emerged xterm with USE="unicode" ? |
|
Back to top |
|
|
Shadow Monkey n00b
Joined: 15 Dec 2004 Posts: 12
|
Posted: Sun Jun 05, 2005 2:35 pm Post subject: |
|
|
Yes, I did, but I'm actually using rxvt-unicode. I belive I set every use-flag
that could matter, and several keypackages have been re-emerged since.
Above includes ncurses, readline and bash 3.0 (bash got re-emerged
even with does patches mentioned in one of those unsolved bugzilla
problems - those are not in portage tree, but were actually useful,
have solved some other problems I noticed) |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Sun Jun 05, 2005 3:09 pm Post subject: |
|
|
I admit I'm grasping at straws here, but do you use the use flag "userlocales" with glibc and the file /etc/locales.build? |
|
Back to top |
|
|
Leo Lausren Apprentice
Joined: 24 Feb 2004 Posts: 198 Location: Denmark
|
Posted: Mon Jun 06, 2005 7:04 am Post subject: Re: A problem with man and UTF-8 |
|
|
Shadow Monkey wrote: | Since I switched to an UTF-8 locale,...[--8<--]
I removed -Tlatin1 from the lines in /etc/man.conf |
I have -Tutf8 where it used to be -Tlatin1, and so far no problems. _________________ Blog: common sense – nonsense |
|
Back to top |
|
|
cyberpatrol Apprentice
Joined: 18 Sep 2003 Posts: 161 Location: Germany
|
Posted: Sun Sep 18, 2005 12:51 am Post subject: |
|
|
It's not the newest thread but I had similar problems with man after setting my Gentoo box to utf-8.
Now I found out that these settings should be set to get man working with utf-8.
/etc/man.conf
Code: |
NROFF /usr/bin/nroff -Tlatin1 -mandoc (not -Tutf8 or without -T...)
NEQN /usr/bin/geqn -Tlatin1 (not -Tutf8 or without -T...)
|
This is because the manpages are not written in utf-8, so that nroff has to read them as latin1.
/etc/env.d/70less
This is to let less convert nroff's output into utf-8 before displaying it. |
|
Back to top |
|
|
edi15ta n00b
Joined: 06 May 2005 Posts: 60 Location: Kraków (Poland)
|
Posted: Thu Sep 29, 2005 10:53 am Post subject: |
|
|
is this problem solved?
because I got the same problem. _________________ pozdr
mateusz |
|
Back to top |
|
|
cyberpatrol Apprentice
Joined: 18 Sep 2003 Posts: 161 Location: Germany
|
Posted: Thu Sep 29, 2005 11:33 am Post subject: |
|
|
For me it is solved with the settings I posted.
Of course you shouldn't copy the stuff between the brackets into the config files. |
|
Back to top |
|
|
nemo13 Veteran
Joined: 08 Oct 2004 Posts: 1016 Location: France/Istres
|
|
Back to top |
|
|
|