From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60008 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: mm-charset-to-coding-system and mm-charset-synonym-alist Date: Fri, 18 Mar 2005 14:42:22 +0100 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111153847 20546 80.91.229.2 (18 Mar 2005 13:50:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2005 13:50:47 +0000 (UTC) Cc: Ding List , Stefan Monnier Original-X-From: ding-owner+M8549@lists.math.uh.edu Fri Mar 18 14:50:46 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1DCHpK-0006mw-Cd for ding-account@gmane.org; Fri, 18 Mar 2005 14:47:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DCHkW-0002iG-00; Fri, 18 Mar 2005 07:42:48 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DCHkN-0002i8-00 for ding@lists.math.uh.edu; Fri, 18 Mar 2005 07:42:39 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DCHkF-0004l9-Bk for ding@lists.math.uh.edu; Fri, 18 Mar 2005 07:42:31 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DCHkA-0003sF-00 for ; Fri, 18 Mar 2005 14:42:26 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.3/8.13.3) with ESMTP id j2IDgMXo015393; Fri, 18 Mar 2005 14:42:22 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id B44F7100FD; Fri, 18 Mar 2005 14:42:22 +0100 (CET) Mail-Followup-To: , Ding List Original-To: X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DCC-NIET-Metrics: gemini 1080; env_From=4 Body=4 Fuz1=4 Fuz2=4 X-Spam-Score: -3.5 (---) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8549@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: news.gmane.org gmane.emacs.gnus.general:60008 gmane.emacs.devel:34719 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60008 On Wed, Mar 16 2005, Stefan Monnier wrote: > Is there any good reason why mm-charset-to-coding-system only looks up > mm-charset-synonym-alist after checking mm-coding-system-p? > > I'm being annoyed with email encoded in windows-1252 but labelled as latin-1 Did you know that you can adding (2 . windows-1252) to `gnus-summary-show-article-charset-alist' allow you to show the article as windows-1252 with `2 g'. > and figured that I could simply put > > ;; Since windows-1252 is a superset of latin-1 and some email encoded in > ;; windows-1252 are labelled as latin-1, let's just always use windows-1252 > ;; whenever the label says latin-1. > (add-to-list 'mm-charset-synonym-alist '(iso-8859-1 . windows-1252)) > > in my .gnus, but it didn't work because mm-charset-synonym-alist is not > consulted if the charset label says "iso-8859-1" because there is > a coding-system called "iso-8859-1". I recall (from the German Gnus newsgroup) that Simon Krahnke (Bcc-ed) used such a setup. But after looking at the code, I don't understand why it worked for him. > So I suggest the patch below, > Any objection? I fear that users may forget about their older setting of `mm-charset-synonym-alist'. Then, when upgrading Emacs and new charsets are available, they will get the substitute charset from `mm-charset-synonym-alist' instead of the correct charset. Maybe we could introduce `mm-charset-override-alist' an look at it before "((and (mm-coding-system-p charset)" or even as the first cond-clause. BTW: You patch won't allow to override `us-ascii'. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/