unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: Ding List <ding@gnus.org>, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: mm-charset-to-coding-system and mm-charset-synonym-alist
Date: Fri, 18 Mar 2005 14:42:22 +0100	[thread overview]
Message-ID: <v9fyytcbpd.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: jwvhdjbthwm.fsf-monnier+emacs@gnu.org

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/



  parent reply	other threads:[~2005-03-18 13:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-16 21:16 mm-charset-to-coding-system and mm-charset-synonym-alist Stefan Monnier
2005-03-17  0:18 ` Kevin Rodgers
2005-03-18 13:42 ` Reiner Steib [this message]
2005-03-18 14:21   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9fyytcbpd.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).