Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[UTF-8] Problème avec man
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
_kal_
l33t
l33t


Joined: 04 Mar 2005
Posts: 602
Location: Paris

PostPosted: Sat Oct 01, 2005 11:58 am    Post subject: [UTF-8] Problème avec man Reply with quote

Hello tout le monde!

J'ai un ch'tit problème avec la commande man. En effet, celle-ci n'as pas l'air de supporter l'utf-8, bizarre...

Voici un screenshot :

http://kalhfr.free.fr/Divers/man-utf8.png

Code:
kal@vaio ~ $ locale
LANG=fr_FR.utf8
LC_CTYPE="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LC_COLLATE="fr_FR.utf8"
LC_MONETARY="fr_FR.utf8"
LC_MESSAGES="fr_FR.utf8"
LC_PAPER="fr_FR.utf8"
LC_NAME="fr_FR.utf8"
LC_ADDRESS="fr_FR.utf8"
LC_TELEPHONE="fr_FR.utf8"
LC_MEASUREMENT="fr_FR.utf8"
LC_IDENTIFICATION="fr_FR.utf8"
LC_ALL=fr_FR.utf8


Même problème en console :(

Une idée?
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1902
Location: 127.0.0.1

PostPosted: Sat Oct 01, 2005 12:03 pm    Post subject: Reply with quote

Salut,

Essayes çà.
Back to top
View user's profile Send private message
_kal_
l33t
l33t


Joined: 04 Mar 2005
Posts: 602
Location: Paris

PostPosted: Sat Oct 01, 2005 12:13 pm    Post subject: Reply with quote

NetFab wrote:
Salut,

Essayes çà.


Salut ;)

Ca ne marche pas chez moi. Voici ce que j'ai mis :

/etc/man.conf
Code:
# If you have a new troff (version 1.18.1?) and its colored output
# causes problems, add the -c option to TROFF, NROFF, JNROFF.
#
TROFF           /usr/bin/groff -Tps -mandoc
NROFF           /usr/bin/nroff -Tlatin1 -c -mandoc


Et voici ce que ca donne :

http://kalhfr.free.fr/Divers/man-utf8_2.png

Pareil si je tente avec -Tutf8 :evil:

Merci quand même :)
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sat Oct 01, 2005 12:32 pm    Post subject: Reply with quote

Autre solution : ne pas utiliser les man-pages-fr ;)
Bon, je sais, c'est une solution a 2 balles, mais si tu regardes bien, les pages man fr sont pas du tout a jour pour certaines (regarde celle de find que tu as mis en screenshot par exemple, elle est pas du tout pareille en VO...)
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
_kal_
l33t
l33t


Joined: 04 Mar 2005
Posts: 602
Location: Paris

PostPosted: Sat Oct 01, 2005 2:22 pm    Post subject: Reply with quote

guilc wrote:
Autre solution : ne pas utiliser les man-pages-fr ;)
Bon, je sais, c'est une solution a 2 balles, mais si tu regardes bien, les pages man fr sont pas du tout a jour pour certaines (regarde celle de find que tu as mis en screenshot par exemple, elle est pas du tout pareille en VO...)


C'est vrai, je plussoi :roll:

Cependant, il existe des man écrite dans un anglais assez complexe pour moi et ça peut être utile de les avoir en français. Enfin bon, j'vais degager les man-fr tant pis :wink:
Back to top
View user's profile Send private message
antoine
n00b
n00b


Joined: 06 Oct 2004
Posts: 67
Location: Brussels

PostPosted: Sun Oct 02, 2005 7:33 am    Post subject: Reply with quote

Enfin, si tu retire les man-pages-fr, tu n'auras plus le "man c" :D
Back to top
View user's profile Send private message
kopp
Advocate
Advocate


Joined: 09 Apr 2004
Posts: 2885
Location: Grenoble, France

PostPosted: Sun Oct 02, 2005 9:48 am    Post subject: Reply with quote

antoine wrote:
Enfin, si tu retire les man-pages-fr, tu n'auras plus le "man c" :D

Pinaise, c'est énorme ce truc, je ne connaissais pas! Bon le truc chiant, c'est que c'est pareil ici avec l'utf8 et que du coup, cest assezlourd à lire...
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Mon Oct 03, 2005 12:54 pm    Post subject: Reply with quote

Non, le man c existe aussi en anglais (enfin là j'ai essayé sur une debian, mais ça doit être pareil sous gentoo, je vérifirai chez moi).
Merci aussi pour ce truc, je connaissais pas non plus ! :D
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Mon Oct 03, 2005 1:32 pm    Post subject: Reply with quote

man c ? ca fait quoi ? comme info glibc ?
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Mon Oct 03, 2005 2:41 pm    Post subject: Reply with quote

Voilà le copier/coller du man :
Quote:

C(1) C(1)



NAME
c - genericised soft drink generator (ie coffee, coke etc)

SYNOPSIS
c [-s[number]] [-m[type]] [-e] [-i] [-T] [-S amount] [--other=drink]

DESCRIPTION
This manual page documents the GNU version of c. c is a genericised
soft drinks engine designed to provide a stream of the desired
beverage on the standard output. By default, c makes coffee,
white, no sugar. This is a historical choice based on the authors
preferences. This behaviour is controlled by the options, and a wide
range of other drinks are possible. Please note that not all
combinations make sense, in taste terms, but that parsing by c extends
only to syntax. Experiment at your own risk.

OPTIONS
-s[number]
Specifies the number of sugars desired. If this option is
omitted, none will be included.

Excessively large values will result in unpleasant side
effects, including rotting teeth and excess weight.

If this option is specified with no parameter, the default is
one.

-m[type]
Determines whether milk will be used or not. The default cor-
responds to the specification 'cold'. cold - Normal, cold milk

hot Normal, hot milk

frth Frothed milk (see -e option for cappucino)

none No milk. Recommended for those who have a deadline.

goat Use your imagination.


-e Espresso option. High pressure steam is forced through fine
ground dark beans for a stronger brew; careful use of the -S
option is advised to avoid shaky hands and heart palpitations
(see BUGS).

-i Iced coffee. Self explanatory really...

-T Turkish coffee. The only type of coffee that is boiled
deliberately. -s2 or more recommended to avoid grimaces.

-S[amount]
Size of the virtual 'mug' to be filled. The scale used is
fairly arbitrary, but should cover most cases... 1 thimble-
ful

2 espresso cup
3 cafe-style coffee cup

4 office mug

5 sysadmin mug

6 bucket

Use of -S 6 is contraindicated for use with n(1), due to pos-
sible damage to t he nasal membranes, and risk of drown-
ing. The default is 4; unless a beta version of the OS is
installed, when the default is 5. If the beta is of Digital
UNIX, 6 is the default; you'll need it.

--other=drink
Specify a drink other than coffee. Use of other options is
not recommended; the behaviour is unspecified!

BUGS
Caffeine overdose can result by inadvised combinations of options (ie
-e and large values for -S). If you suffer from increased heart
rate, visual disturbance, shaking hands, shortness of breath, it
is suggested that you discontinue use. A -d (decaf) option was
included in previous versions, but was removed after a threatened
litigation arising from an unfortunate practical joke involving
misuse.

SEE ALSO
n(1)

AUTHOR
Nick Williams, New College, Oxford University. nickw@iname.com.



GNU Drink Utilities May 27, 1997 C(1)
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Mon Oct 03, 2005 2:54 pm    Post subject: Reply with quote

[N] games-misc/asr-manpages (): set of humorous manual pages developed on alt.sysadmin.recovery
[N] games-misc/funny-manpages (): funny manpages collected from various sources
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Mon Oct 03, 2005 3:55 pm    Post subject: Reply with quote

je sais pas si c'est un bug, mais quand on installe les funny manpages on peut plus avoir de man date correct (deja essaye tous les numeros)

EDIT: en fait avec man -a date ca marche

et ca va etre corrigé dans la prochaine version de funny-manpages
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'


Last edited by kernelsensei on Tue Oct 04, 2005 6:40 pm; edited 2 times in total
Back to top
View user's profile Send private message
Starch
Guru
Guru


Joined: 26 Feb 2003
Posts: 539
Location: Rennes, France

PostPosted: Tue Oct 04, 2005 7:36 am    Post subject: Re: [UTF-8] Problème avec man Reply with quote

_kal_ wrote:
J'ai un ch'tit problème avec la commande man. En effet, celle-ci n'as pas l'air de supporter l'utf-8, bizarre...
Une idée?


Code:

echo $PAGER


Si je ne m'abuse, c'est la commande dans cette variable d'environnement qui va '"lire" le fichier. Si c'est less, regarder du côté de LESSCHARSET voire changer.
_________________
- Vous aurez beau dire... Y'a pas qu'd'la pomme... Y'aurait pas aussi d'la betterave ?
- Si, y'en a aussi
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Tue Oct 04, 2005 4:57 pm    Post subject: Re: [UTF-8] Problème avec man Reply with quote

Starch wrote:
Code:

echo $PAGER


Si je ne m'abuse, c'est la commande dans cette variable d'environnement qui va '"lire" le fichier. Si c'est less, regarder du côté de LESSCHARSET voire changer.

Ca, ça change rien, le problème principal, c'est pas less.
Enfin, je le pense très fortement puisque mon manpager c'est vim (MANPAGER='col -b | /usr/share/vim/vim70aa/macros/less.sh -c 'set ft=man nomod nolist' -), et j'ai exactement le même problème, alors que vim est plus que largement utf-8 aware ;)
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
kopp
Advocate
Advocate


Joined: 09 Apr 2004
Posts: 2885
Location: Grenoble, France

PostPosted: Tue Oct 04, 2005 5:01 pm    Post subject: Reply with quote

J'ai essayé de changer la variable LESSCHARSET en la remplaçant par fr_FR.UTF-8 : le résultat n'est pas probant : ça plante :) impossible d'utiliser man comme ça...
Back to top
View user's profile Send private message
Starch
Guru
Guru


Joined: 26 Feb 2003
Posts: 539
Location: Rennes, France

PostPosted: Thu Oct 06, 2005 12:15 pm    Post subject: Reply with quote

En fait j'ai moi même le même problème, alors que je ne suis pas en utf-8
_________________
- Vous aurez beau dire... Y'a pas qu'd'la pomme... Y'aurait pas aussi d'la betterave ?
- Si, y'en a aussi
Back to top
View user's profile Send private message
SuperDindon
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2005
Posts: 125

PostPosted: Thu Oct 06, 2005 12:46 pm    Post subject: Reply with quote

Pas mieux de mon côté, jsuis en ISO-8859-15
Back to top
View user's profile Send private message
Asher256
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2005
Posts: 92

PostPosted: Thu Oct 06, 2005 7:51 pm    Post subject: ma solution... Reply with quote

Je suis moi aussi en UTF8. Pour ma part j'ai eu le même souci et j'ai trouvé une solution: iconv

Dans /etc/man.conf voilà ma ligne NROFF:

Code:
NROFF           iconv -f utf8 -t iso8859-1 | /usr/bin/nroff -mandoc -c -Tutf8


Tous les man fr marchent.
_________________
Blog (Qui parle en majorité de GNU/Linux et des logiciels libres): http://asher256.tuxfamily.org
Dictionnaire informatique libre: http://jargon.tuxfamily.org/
Back to top
View user's profile Send private message
kopp
Advocate
Advocate


Joined: 09 Apr 2004
Posts: 2885
Location: Grenoble, France

PostPosted: Thu Oct 06, 2005 8:17 pm    Post subject: Reply with quote

Pareil chez moi, merci pour l'info : c'est quand même plus agréable !
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Thu Oct 06, 2005 8:51 pm    Post subject: Reply with quote

chez moi ca marchait au debut ... la je me suis rendu compte que ca ne marchait plus ... et maintenant avec
Code:
NROFF       /usr/bin/nroff -c -mandoc
ca remarche ...
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
Starch
Guru
Guru


Joined: 26 Feb 2003
Posts: 539
Location: Rennes, France

PostPosted: Fri Oct 07, 2005 9:11 am    Post subject: Reply with quote

Alors je reprécise : ma locale est fr_FR@euro

Si je teste avec -Tlatin1 => ça me génère de l'utf8

Code:

export MANPAGER="col -b | /usr/share/vim/vim63/macros/less.sh -c 'set ft=man nomod nolist encoding=utf-8 termencoding=iso-8859-1' -"


permet alors de presque bien voir la chose. les à, É ne passent pas sur ma version du manuel de strftime. j'ai un <c3> à la place. Le malheureux problème avec vim est que je doive à chaque fois changer le termencoding dépendant de là où je suis... (si quelqu'un a une solution d'ailleurs pour pouvoir mettre à jour l'environnement dans screen lors d'un reattach...)

Si je recode (je préfère recode à iconv, pour la simple raison qu'il remplace les caractères qui n'ont pas d'équivalent par des caractères approchant), avec un
Code:

export MANPAGER="recode utf-8..iso-8859-1 | less"


ça plante au premier caractère mal encodé (ces fameux <c3>).

Bref je ne vois qu'une seule explication : y'a quelque chose de pourri au royaume des manpages-fr.
_________________
- Vous aurez beau dire... Y'a pas qu'd'la pomme... Y'aurait pas aussi d'la betterave ?
- Si, y'en a aussi
Back to top
View user's profile Send private message
Starch
Guru
Guru


Joined: 26 Feb 2003
Posts: 539
Location: Rennes, France

PostPosted: Tue Oct 18, 2005 9:16 am    Post subject: Re: ma solution... Reply with quote

Asher256 wrote:
Je suis moi aussi en UTF8. Pour ma part j'ai eu le même souci et j'ai trouvé une solution: iconv

Dans /etc/man.conf voilà ma ligne NROFF:

Code:
NROFF           iconv -f utf8 -t iso8859-1 | /usr/bin/nroff -mandoc -c -Tutf8


Tous les man fr marchent.


Étant en iso-8859-15, j'ai fait pareil avec
Code:

NROFF           recode utf8..iso8859-15 | /usr/bin/nroff -mandoc -Tlatin1


Ça marche, mais ça ne me plaît pas de mettre des encodages en dur comme ça dans le fichier de conf. De plus, je ne comprends pas pourquoi ça ne marche pas directement dans le manpager. Je ne vois qu'une solution, groff génère des caractères bizarres...
_________________
- Vous aurez beau dire... Y'a pas qu'd'la pomme... Y'aurait pas aussi d'la betterave ?
- Si, y'en a aussi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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