Frederic wrote:
Bonsoir,

Mon probleme est le suivant:

J'utilise putty pour me connecter a distance sur mon serveur sous linux et
lorsque je veux repondre a mes e-mails avec mutt et bien je ne vois pas les
accentues

pourtant putty est configure pour iso-8859-1 et mon fichier de config
.muttrc idem

Que se passe-til?

Je ne sais pas, mais il y a longtemps, ce problème était typique d'une suppression du bit 7 au niveau de la gestion du tty

---------------
stty -a

speed 38400 baud; rows 25; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

==> Il y a -istrip et cs8 qui sont concernés.

        csN    set character size to N bits, N in [5..8]

        [-]istrip
              clear high (8th) bit of input characters

Pour vérifier ce que ton shell voit en définitive, tu peux simplement lancer
        od -bc
et taper une série de fois un caractère suspect (od attend ce qu'on tape dans le standard input, mais n'affiche que par paquet -> il faut entrer nx le caractère avant de voir le résultat)

[EMAIL PROTECTED] ~]$ od -bc
-> j'entre : ééééééééééééééééééééééééééééééééééééééééééé
0000000 303 251 303 251 303 251 303 251 303 251 303 251 303 251 303 251
        303 251 303 251 303 251 303 251 303 251 303 251 303 251 303 251
*
CTRL-C pour finir

Tu peux faire ce test directement sous Linux et comparer avec ce que tu génères à partir de putty.

Il faut que ce que putty génère corresponde à ce que ton terminal attend : il doit y avoir moyen de changer ses propriétés d'émulation de terminal et de set de caractère [utf-8 ?] (je n'utilise pas MS-W donc pas moyen de tester putty)

Voici ce qui est courant sur ma machine :

[EMAIL PROTECTED] ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=



        Bonne chance,

        Alain



Frederic

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@lists.unixtech.be
IRC: chat.unixtech.be:6667 - #unixtech
NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech



--
" Do something for freedom every day "
        * support Open Document Format : use OpenOffice
        * 'Getting the Facts Straight' : read
                http://www.linuxjournal.com/article/8616

Comparing un-free software to free software is like (literally) comparing Alchemy to Chemistry. For 1000 years, alchemists holed themselves up in their caves (much like proprietary software companies) re-inventing the wheel (trying to turn whatever into gold). 150 years of Chemistry blew away 1000 years of alchemy (in truth, the first 5 years of Chemistry blew away 1000 years of alchemy, the other 145 years went places alchemists couldn't imagine). -- Joe User

begin:vcard
fn:Dr Alain EMPAIN
n:EMPAIN;Alain
org:University of LIEGE;Euregio ALMA-Grid project
adr;quoted-printable:Avenue de l'H=C3=B4pital, 3;;BAT. B23 GIGA,;Liege 1;;B-4000;Belgium
email;internet:[EMAIL PROTECTED]
title:Bioinformatics 
tel;work:+32 4 366 4497
tel;fax:+32 4 366 2917
tel;home:+32 85 51 2341
tel;cell:+32 497 70 1764
x-mozilla-html:FALSE
version:2.1
end:vcard

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@lists.unixtech.be
IRC: chat.unixtech.be:6667 - #unixtech
NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech

Répondre à