From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51182 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: mm-coding-system-priorities (was: charset=macintosh) Date: Tue, 01 Apr 2003 19:51:12 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Sender: owner-ding@hpc.uh.edu Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1049220513 2966 80.91.224.249 (1 Apr 2003 18:08:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2003 18:08:33 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Tue Apr 01 20:08:29 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 190Q7j-0000Uv-00 for ; Tue, 01 Apr 2003 20:04:40 +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 190Q7R-0002og-00; Tue, 01 Apr 2003 12:04:21 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 01 Apr 2003 12:05:26 -0600 (CST) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id MAA17500 for ; Tue, 1 Apr 2003 12:05:12 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 190Q2z-0000Bp-00 for ; Tue, 01 Apr 2003 19:59:45 +0200 Mail-Followup-To: ding@hpc.uh.edu X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@hpc.uh.edu Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 190Pz7-0008Oa-00 for ; Tue, 01 Apr 2003 19:55:45 +0200 Original-Lines: 87 Original-X-Complaints-To: usenet@main.gmane.org X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od The reason Emacs doesn't list UTF-8 higher than macintosh is, > supposedly, that the UTF-8 support is not complete. Once it is > complete, the emacs maintainers will probably change the preference > ordering. Apparently it has already been changed in Emacs 21.3, see below. > Fortunately it is easy to override the priorities within Gnus: > '(mm-coding-system-priorities (quote (iso-latin-1 iso-latin-9 utf-8))) > > Hm. The UTF-8 discussion in Emacs 21.2 PROBLEMS is not present in > Emacs 21.3 prerelease, so perhaps it has been fixed. I'll ask on > emacs-devel whether utf-8 should be preferred over mac-roman. Sample text: “quotes” With Emacs 21.3.1 and current Oort [1] I get (in mml-preview): ,---- | (setq mm-coding-system-priorities nil) | ==> charset=utf-8 | | (setq mm-coding-system-priorities '(macintosh utf-8)) | ==> charset=utf-8 | | (setq mm-coding-system-priorities '(mac-roman utf-8)) | ==> charset=macintosh `---- Adding windows-1252 [2] gives: ,---- | (setq mm-coding-system-priorities nil) | ==> charset=utf-8 | | (setq mm-coding-system-priorities '(windows-1252 macintosh utf-8)) | ==> charset=windows-1252 | | (setq mm-coding-system-priorities '(utf-8 macintosh windows-1252)) | ==> charset=windows-1252 | | (setq mm-coding-system-priorities '(mule-utf-8 windows-1252)) | ==> charset=utf-8 `---- Apparently, we need to write `mule-utf-8' and `mac-roman' instead of `utf-8' and `macintosh', respectively. ,----[ C-h v mm-coding-system-priorities RET ] | mm-coding-system-priorities's value is nil | | Documentation: | Preferred coding systems for encoding outgoing mails. `---- So `mm-coding-system-priorities' expects an Emacs coding system and not a MIME charset. But OTOH... ,----[ M-x describe-coding-system utf-8 RET ] | u -- utf-8 (alias of mule-utf-8) `---- Hm, does it even expect the original name of the coding-system and *not* an alias? If so, I think this should be made more clear in the documentation. Bye, Reiner. [1] Oort Gnus v0.18 In GNU Emacs 21.3.1 (i586-pc-linux-gnu, X toolkit, Xaw3d scroll bars) configured using `configure --prefix=/soft/local/upp/emacs' Important settings: value of $LC_CTYPE: en_US.ISO_8859-1 value of $LANG: C locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t [2] http://theotp1.physik.uni-ulm.de/~ste/comp/emacs/gnus/rs-windows-1252.el (require 'rs-windows-1252) (rs-use-windows-1252) -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/