Gnus development mailing list
 help / color / mirror / Atom feed
* mm-coding-system-priorities
@ 2004-03-24 14:09 Miles Bader
  2004-03-24 14:28 ` mm-coding-system-priorities Jesper Harder
  2004-03-24 14:47 ` mm-coding-system-priorities Reiner Steib
  0 siblings, 2 replies; 7+ messages in thread
From: Miles Bader @ 2004-03-24 14:09 UTC (permalink / raw)


Hi,

I'm using the gnus in the Emacs source tree, so maybe this problem has
already been fixed:

`mm-coding-system-priorities' seems to only work properly if the members
are `canonical' character-set names instead of aliases, for instance
this fails to do the right thing:

   (setq mm-coding-system-priorities '(euc-jp))

but this works:

   (setq mm-coding-system-priorities (mapcar 'coding-system-base '(euc-jp)))

It seems to me that gnus ought to do this mapping itself, as many coding
systems have aliases which are more widely used than their canonical emacs
names.

Perhaps something like (untested):

--- orig/lisp/gnus/mm-util.el
+++ mod/lisp/gnus/mm-util.el
@@ -507,8 +507,11 @@
 	     ;; system that has one.
 	     (let ((systems (find-coding-systems-region b e)))
 	       (when mm-coding-system-priorities
-		 (setq systems
-		       (sort systems 'mm-sort-coding-systems-predicate)))
+		 (let ((mm-coding-system-priorities 
+			(mapcar #'coding-system-base
+				mm-coding-system-priorities)))
+		   (setq systems
+			 (sort systems 'mm-sort-coding-systems-predicate))))
 	       ;; Fixme: The `mime-charset' (`x-ctext') of `compound-text'
 	       ;; is not in the IANA list.
 	       (setq systems (delq 'compound-text systems))

Thanks,

-Miles
-- 
"Though they may have different meanings, the cries of 'Yeeeee-haw!' and
 'Allahu akbar!' are, in spirit, not actually all that different."




^ permalink raw reply	[flat|nested] 7+ messages in thread
* charset=macintosh
@ 2003-03-07 17:39 Karl Eichwalder
  2003-03-07 18:25 ` charset=macintosh Simon Josefsson
  0 siblings, 1 reply; 7+ messages in thread
From: Karl Eichwalder @ 2003-03-07 17:39 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

Oort Gnus v0.16
GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-03-05 on tux
200 gnu.franken.de InterNetNews server INN 2.3.2 ready

I wrote to attached message using the TeX iput method (C-x RET c TeX RET).
Especially I added these quotes: \ldq \rdq and then \ldots and \euro .

Sending the message, Gnus choose this encoding:

MIME-Version: 1.0
Content-Type: text/plain; charset=macintosh
Content-Transfer-Encoding: quoted-printable

I would have expected UTF-8 since UTF-8 is more standard than
"macintosh"; I know you can set your preferences somehow -- but I'd
like to see Gnus doing the right thing out of the box.


[-- Attachment #2: Type: message/rfc822, Size: 601 bytes --]

From: Karl Eichwalder <keichwa@gmx.net>
To: ke@gnu.franken.de
Subject: encoding test
Date: Fri, 07 Mar 2003 18:28:35 +0100
Message-ID: <shzno73x30.fsf@tux.gnu.franken.de>

“quotes”
and more…
Grüß Gott.

€ 1.

-- 
ke@suse.de (work) / keichwa@gmx.net (home):              |
http://www.gnu.franken.de/ke/                            |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)


[-- Attachment #3: Type: text/plain, Size: 271 bytes --]

-- 
ke@suse.de (work) / keichwa@gmx.net (home):              |
http://www.gnu.franken.de/ke/                            |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-03-24 15:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-24 14:09 mm-coding-system-priorities Miles Bader
2004-03-24 14:28 ` mm-coding-system-priorities Jesper Harder
2004-03-24 14:47 ` mm-coding-system-priorities Reiner Steib
2004-03-24 15:06   ` mm-coding-system-priorities Miles Bader
  -- strict thread matches above, loose matches on Subject: below --
2003-03-07 17:39 charset=macintosh Karl Eichwalder
2003-03-07 18:25 ` charset=macintosh Simon Josefsson
2003-04-01 17:51   ` mm-coding-system-priorities (was: charset=macintosh) Reiner Steib
2003-04-12 19:53     ` mm-coding-system-priorities Lars Magne Ingebrigtsen
2003-04-13 20:44       ` mm-coding-system-priorities Reiner Steib
2003-04-15 21:54         ` mm-coding-system-priorities Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).