From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59343 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: XEmacs, Gnus and mm-coding-system priorities. Date: Mon, 06 Dec 2004 11:30:23 +0900 Organization: Emacsen advocacy group Message-ID: References: <16816.39575.977351.530618.dm0@vm.parhasard.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1102300268 978 80.91.229.6 (6 Dec 2004 02:31:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2004 02:31:08 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M7883@lists.math.uh.edu Mon Dec 06 03:31:02 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cb8eU-00063j-00 for ; Mon, 06 Dec 2004 03:31:02 +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 1Cb8e9-0006N9-00; Sun, 05 Dec 2004 20:30:41 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Cb8e1-0006N3-00 for ding@lists.math.uh.edu; Sun, 05 Dec 2004 20:30:33 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Cb8dz-00039w-8d for ding@lists.math.uh.edu; Sun, 05 Dec 2004 20:30:31 -0600 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id 9822A3A0060 for ; Sun, 5 Dec 2004 20:30:30 -0600 (CST) Original-Received: from [127.0.0.1] (helo=localhost) by washington.hostforweb.net with esmtpa (Exim 4.42) id 1Cb8e2-0007tP-GH; Sun, 05 Dec 2004 21:30:34 -0500 Original-To: Aidan Kehoe Mail-Followup-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:zr8/r2fdkk4UNqhm20OuyrYXLZE= X-Hashcash: 1:20:041206:kehoea@parhasard.net::8uhew+wxUEjE6HBH:0000000000000000000000000000000000000000037Rz X-Hashcash: 1:20:041206:ding@gnus.org::pV+3hbS1iY//bpGX:00002Dha X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59343 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59343 >>>>> In <16816.39575.977351.530618.dm0@vm.parhasard.net> Aidan Kehoe wrote: > Katsumi Yamaoka; In b9yeki8faw8.fsf@jpl.org on gnu.emacs.gnus, you say th= at > mm-coding-system-priorities should be honoured by the latest Gnus even in > XEmacs. I=E2=80=99m unclear as to how this is possible, given that > mm-use-find-coding-systems-region must always be nil under XEmacs > (find-coding-systems-region doesn=E2=80=99t exist in it) and the only pla= ce the > variable is referenced is after checking if it=E2=80=99s =E2=80=9Ct=E2=80= =9D. Cf. line 594 of > mm-util.el. It is natural that mm-use-find-coding-systems-region is nil in XEmacs. The way to determine the MIME charset in XEmacs is: 1. Find a list of MULE charsets using `find-charset-region' by way of `mm-find-charset-region'. 2. Convert each MULE charset into MIME charset using `mm-mime-charset'. It calls `mm-mule-charset-to-mime-charset' which refers to `mm-coding-system-priorities' by way of `mm-sort-coding-systems-predicate'. In XEmacs, the default order of preferred MIME charsets is specified in order of `mm-mime-mule-charset-alist'. And `mm-coding-system-priorities' enables users to modify the order. I hardly know what latin-unity does as I wrote in the gnu.emacs.gnus newsgroup, but it seems to me that the latest mm-util.el doesn't have an ability to convert Latin-9 to Latin-1. For instance, the following form (let ((mm-coding-system-priorities '(iso-8859-1 iso-8859-15))) (rfc2047-encode-string (string (make-char 'latin-iso8859-15 95)))) returns "=3D?iso-8859-1?Q?=3DDF?=3D" for Emacs, but "=3D?iso-8859-15?Q?=3DDF?=3D" for XEmacs. I tried your patch with the old mm-util.el and confirmed it works. However, it doesn't work with non-Latin characters: (let ((mm-coding-system-priorities '(shift_jis))) (rfc2047-encode-string (string (make-char 'japanese-jisx0208 38 66)))) It returns "=3D?shift_jis?Q?=3D83=3DC0?=3D" for Emacs, but "=3D?iso-2022-jp?B?GyRCJkIbKEI=3D?=3D" for XEmacs. Although the default order of `mm-mime-mule-charset-alist' is just suitable for Japanese messages and we don't need to modify `mm-coding-system-priorities' in Japan, we will need to much improve it. I will study your patch and look for the way to incorporate the latin-unity feature in the latest mm-util.el. Regards,