From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45707 Path: main.gmane.org!not-for-mail From: fabien@tzone.org (Fabien =?iso-8859-1?q?Ni=F1oles?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: locale ISO-8859-15, UTF-8 and mail... Date: 18 Jul 2002 12:12:56 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <874rexdng7.fsf@tzone.org> References: <87it3e2pzr.fsf@tzone.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1027008858 31946 127.0.0.1 (18 Jul 2002 16:14:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2002 16:14:18 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17VDux-0008J1-00 for ; Thu, 18 Jul 2002 18:14:15 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17VDu3-0007lX-00; Thu, 18 Jul 2002 11:13:19 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 18 Jul 2002 11:13:43 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA11571 for ; Thu, 18 Jul 2002 11:13:28 -0500 (CDT) Original-Received: (qmail 823 invoked by alias); 18 Jul 2002 16:13:00 -0000 Original-Received: (qmail 818 invoked from network); 18 Jul 2002 16:13:00 -0000 Original-Received: from tomts10.bellnexxia.net (HELO tomts10-srv.bellnexxia.net) (209.226.175.54) by gnus.org with SMTP; 18 Jul 2002 16:13:00 -0000 Original-Received: from Nightbird.TZoNE.ORG ([65.92.160.251]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020718161249.EVLF18503.tomts10-srv.bellnexxia.net@Nightbird.TZoNE.ORG>; Thu, 18 Jul 2002 12:12:49 -0400 Original-Received: from hawkmoon (Hawkmoon.Local.TZoNE.ORG [192.168.1.10]) by Nightbird.TZoNE.ORG (Postfix) with ESMTP id 8736453816; Thu, 18 Jul 2002 12:12:57 -0400 (EDT) Original-Received: from fabien by hawkmoon with local (Exim 3.35 #1 (Debian)) id 17VDtg-0000yl-00; Thu, 18 Jul 2002 12:12:56 -0400 Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) X-Face: #`Gko'-Jy\ZkX3W&5Upcg64y,`90(x9qbGF6u&&,R[SYa(RK1fFeT$R[1KtGuO'3*-MRD,6 7I"C$n~/!}8TOO&~yae8%W(P&lH%R0M)N}p In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 53 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45707 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45707 >>>>> "Kai" =3D=3D Kai Gro=C3=9Fjohann = writes: Kai> fabien@tzone.org (Fabien Ni=C3=B1oles) writes: >> My problem is when I try to read mail encoded in ISO-8859-1. >> Gnus doesn't seems to recognized them correctly and aren't able >> to trancode them to my correct display setting (ISO-8859-15 or >> latin-9 if you prefer). Even "W M c" doesn't wash the mail >> correctly: the characters (previously printed as ?) are >> correctly replaced but have a \201 before each occurence >> (whatever the encoded character is). Kai> There is a file latin1-disp.el which can sort of do what you Kai> want, but it uses Latin-1 characters instead of Latin-9 Kai> characters. So you'd have to make a new version which is Kai> very similar but uses Latin-9 characters. Then you can tell Kai> Emacs to display many characters using their Latin-9 Kai> equivalents. Done, I send the file to Dave Love (the original maintainer of latin-1) but, if it works for mostly anything (like this email: =C2=BE), it doesn't work when I visiting Latin-1 encoded email; or even in mail-headers. Something like "=C3=A9l=C3=A8ve" will go out has "?l?ve", and, if I "C-u W = M c latin-9", it will be "\201=C3=A9l\201=C3=A8ve". Just watching it with "W M= c", only add \201 before all `?'. I'm looking for adding a command that simple (gnus-article-decode-charset nil 'latin-9) and remove all \201,=20 but I will frankly prefer to make it works correctly. hmmm... I try to isolate the bug a little number and it seems that it's somewhere in decode-coding-region and/or decode-coding-string (both built-in). At least, this=20 (mm-decode-string "=C3=A9l=C3=A8ve" "iso-8859-1")=20 replace each accentuated character with the sequence "\216?" and (mm-decode-string "=C3=A9l=C3=A8ve" "iso-8859-15") simply add \216 front to each accentuated character. So it seems to me that the only bug is the addition of the \216 (or \201 for decode-region) after the translation of a character... BTW, I'm on powerpc, maybe it's relevant (unsigned char and consor bugs...). Thanks, Fabien=20 --=20 Fabien Ni=C3=B1oles Debian Maintainer fabien@debian.org http://www.debian.org GPG KeyID: C15D FE9E BB35 F596 127F BF7D 8F1F DFC9 BCE0 9436