From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64409 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: charset ANSI_x3.4-1968, et al Date: Sun, 18 Mar 2007 20:54:55 +0100 Message-ID: <87tzwiwcmo.fsf@mocca.josefsson.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174247769 24720 80.91.229.12 (18 Mar 2007 19:56:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Mar 2007 19:56:09 +0000 (UTC) Cc: ding@gnus.org To: Karl Chen Original-X-From: ding-owner+M12933@lists.math.uh.edu Sun Mar 18 20:56:00 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1HT1Ty-0003Za-0Z for ding-account@gmane.org; Sun, 18 Mar 2007 20:55:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1HT1TP-00076D-Px; Sun, 18 Mar 2007 14:55:23 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HT1TM-00075k-Jf for ding@lists.math.uh.edu; Sun, 18 Mar 2007 14:55:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HT1TG-0006lI-8Y for ding@lists.math.uh.edu; Sun, 18 Mar 2007 14:55:20 -0500 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HT1TA-0001EK-00 for ; Sun, 18 Mar 2007 20:55:08 +0100 Original-Received: from mocca.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id l2IJstUS010972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 Mar 2007 20:54:56 +0100 OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody X-Hashcash: 1:22:070318:ding@gnus.org::4grgconLM5yIsJas:9jaW X-Hashcash: 1:22:070318:quarl@cs.berkeley.edu::913CnFBrPHKMPova:PMZ8 In-Reply-To: (Karl Chen's message of "Sat\, 17 Mar 2007 18\:41\:14 -0700") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) X-Spam-Status: No, score=-2.0 required=4.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.2 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64409 Archived-At: Karl Chen writes: > Dear Gnus developers, I've been starting to receive a lot of > emails from cron [1] with this header: > > Content-Type: text/plain; charset=ANSI_X3.4-1968 > > I get the message: Unknown charset: ANSI_X3.4-1968 > > According to RFC 1345, "ANSI_X3.4-1968", along with other names, > are aliases for US-ASCII, and actually, "ANSI_X3.4-1968" is the > official name (though according to > http://www.iana.org/assignments/character-sets, "US-ASCII" is the > preferred MIME name). RFC 1345 is not standards-track, but the IANA registry is used by the standards-track MIME. > Could you consider something such as the patch below, which works > for me: > > > --- mm-util.el 17 Mar 2007 18:08:14 -0700 7.62 > +++ mm-util.el 17 Mar 2007 18:27:45 -0700 > @@ -641,8 +641,9 @@ > ((and allow-override > (let ((cs (cdr (assq charset mm-charset-override-alist)))) > (and cs (mm-coding-system-p cs) cs)))) > - ;; ascii > - ((eq charset 'us-ascii) > + ;; ascii (see RFC 1345) > + (memq charset '(us-ascii ansi_x3.4-1968 ansi_x3.4-1986 iso-ir-6 iso646-us > + iso_646.irv:1991 us ibm367 cp367 csascii)) > 'ascii) > ;; Check to see whether we can handle this charset. (This depends > ;; on there being some coding system matching each `mime-charset' I think we should install this. Any objections? > [1] This is now happening on multiple systems (which are all > Debian). cron appears to be using the default locale name. > On Linux, you can get the string ANSI_x3.4-1968 if you run > "LC_CTYPE=C locale charmap". I think this should be reported as a bug. /Simon