Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A problem with man and UTF-8
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Shadow Monkey
n00b
n00b


Joined: 15 Dec 2004
Posts: 12

PostPosted: Wed Jun 01, 2005 2:09 pm    Post subject: A problem with man and UTF-8 Reply with quote

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
View user's profile Send private message
overkll
Veteran
Veteran


Joined: 21 Sep 2004
Posts: 1249
Location: Austin, Texas

PostPosted: Wed Jun 01, 2005 7:26 pm    Post subject: Reply with quote

Have you emerged xterm with USE="unicode" ?
Back to top
View user's profile Send private message
Shadow Monkey
n00b
n00b


Joined: 15 Dec 2004
Posts: 12

PostPosted: Sun Jun 05, 2005 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
overkll
Veteran
Veteran


Joined: 21 Sep 2004
Posts: 1249
Location: Austin, Texas

PostPosted: Sun Jun 05, 2005 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Leo Lausren
Apprentice
Apprentice


Joined: 24 Feb 2004
Posts: 198
Location: Denmark

PostPosted: Mon Jun 06, 2005 7:04 am    Post subject: Re: A problem with man and UTF-8 Reply with quote

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
View user's profile Send private message
cyberpatrol
Apprentice
Apprentice


Joined: 18 Sep 2003
Posts: 161
Location: Germany

PostPosted: Sun Sep 18, 2005 12:51 am    Post subject: Reply with quote

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
Code:

LESSCHARSET=utf-8


This is to let less convert nroff's output into utf-8 before displaying it.
Back to top
View user's profile Send private message
edi15ta
n00b
n00b


Joined: 06 May 2005
Posts: 60
Location: Kraków (Poland)

PostPosted: Thu Sep 29, 2005 10:53 am    Post subject: Reply with quote

is this problem solved?

because I got the same problem.
_________________
pozdr
mateusz
Back to top
View user's profile Send private message
cyberpatrol
Apprentice
Apprentice


Joined: 18 Sep 2003
Posts: 161
Location: Germany

PostPosted: Thu Sep 29, 2005 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
nemo13
Veteran
Veteran


Joined: 08 Oct 2004
Posts: 1016
Location: France/Istres

PostPosted: Mon Jan 23, 2006 7:20 pm    Post subject: Reply with quote

bonjour,

this can help you ?

https://forums.gentoo.org/viewtopic-t-425826.html :?:

bye.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum