From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39917 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: Using iso-8859-15 with Emacs21 & Gnus Date: Sat, 03 Nov 2001 09:53:48 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <2nofmjvrb7.fsf@zsh.cs.rochester.edu> References: <877ktg7l35.fsf@deneb.enyo.de> <87bsim7mw5.fsf@deneb.enyo.de> <2n1yjio8ug.fsf@zsh.cs.rochester.edu> <87u1wexktw.fsf@deneb.enyo.de> <2n7ktaul0k.fsf@zsh.cs.rochester.edu> <87wv19vuba.fsf@deneb.enyo.de> <2nhescyf4t.fsf@zsh.cs.rochester.edu> <87g07wnnrv.fsf@deneb.enyo.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175550 30491 80.91.224.250 (21 Oct 2002 04:45:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:45:50 +0000 (UTC) Return-Path: Original-Received: (qmail 11287 invoked from network); 3 Nov 2001 14:55:58 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 3 Nov 2001 14:55:58 -0000 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 1602CO-0005aZ-00; Sat, 03 Nov 2001 08:55:04 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 03 Nov 2001 08:54:45 -0600 (CST) 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 IAA02122 for ; Sat, 3 Nov 2001 08:54:32 -0600 (CST) Original-Received: (qmail 11277 invoked by alias); 3 Nov 2001 14:54:46 -0000 Original-Received: (qmail 11272 invoked from network); 3 Nov 2001 14:54:46 -0000 Original-Received: from roc-24-95-193-9.rochester.rr.com (HELO zsh.2y.net) (24.95.193.9) by gnus.org with SMTP; 3 Nov 2001 14:54:46 -0000 Original-Received: (from zsh@localhost) by zsh.2y.net (8.11.6/8.11.2) id fA3Erml08405; Sat, 3 Nov 2001 09:53:48 -0500 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q Mail-Copies-To: never In-Reply-To: <87g07wnnrv.fsf@deneb.enyo.de> (Florian Weimer's message of "Sat, 03 Nov 2001 11:37:24 +0100") Original-Lines: 34 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39917 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39917 Florian Weimer writes: > ShengHuo ZHU writes: > >>> because the standard utf-8.el can deal with ISO-8859-1, but not >>> ISO-8859-15. >> >> That's the problem of utf-8.el. > > It completely breaks UTF-8 support for Gnus using Emacs 21. If you > reply to a UTF-8 message, chances are good that it contains ISO-8859-1 > characters, and if I understand your code correctly, these characters > are mapped to ISO-8859-15, so the reply cannot be encoded using UTF-8 > by Emacs. The point is that if a message contains ISO-8859-15, Gnus converts ISO-8859-1 to ISO-8859-15. The cases are that if a message contains 1. no ISO-8859-15 chars, no conversion. Fine for utf-8.el. 2. some inconvertible ISO-8859-15 chars (e.g. euro sign), convert ISO-8859-1 to ISO-8859-15. No harm, utf-8.el can't encode it either way. 3. no inconvertible ISO-8859-15 chars, convert ISO-8859-1 to ISO-8859-15. It would be better to convert them to ISO-8859-1. But this case doesn't happen much. Why users input ISO-8859-15 chars if they can do it with ISO-8859-1 chars? To autodetect the case 3 will lose the efficiency. ShengHuo