Gnus development mailing list
 help / color / mirror / Atom feed
From: Hallvard B Furuseth <h.b.furuseth@usit.uio.no>
Subject: Re: \201 problem reproduced
Date: 12 Sep 1998 23:32:55 +0200	[thread overview]
Message-ID: <HBF.980912jevu@bombur2.uio.no> (raw)
In-Reply-To: Vladimir Volovich's message of "Sat, 12 Sep 1998 19:17:22 GMT"

Right.  The closest you can get with stuff like this in mm-utils:

(defun mm-mime-charset (charset b e)
  (if (fboundp 'coding-system-get)
      (or
>>>    (coding-system-get
>>>     (get-charset-property charset 'prefered-coding-system)
        'mime-charset)
       (car (memq charset (find-coding-systems-region
                           (point-min) (point-max)))))
    (mm-mule-charset-to-mime-charset charset)))

is probably to first check if the session's preferred coding system or
whatever supports <charset> and has a 'mime-charset.  Apparently
something like this (unless MULE has a function to do it already):

    (if (let ((safe (coding-system-get <preferred-MIME-coding-system>
				       'safe-charsets)))
	  (or (eq safe t) (memq charset safe)))
	(coding-system-get <preferred-MIME-coding-system> 'mime-charset)

...except that we want the inverse of 'safe-charsets':-( safe-charsets
means the charset can encode the coding system, not that the coding
system can encode the charset.  koi8 can't encode all of iso8859-5.

The only real solution is to *not* deal with MULE charsets, but go
directly from MULE coding system to MIME charset.  But maybe that's more
work and won't happen that fast.

-- 
Hallvard


  reply	other threads:[~1998-09-12 21:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-08 19:35 Lars Magne Ingebrigtsen
1998-09-09 18:04 ` Vladimir Volovich
1998-09-10  0:28   ` Lars Magne Ingebrigtsen
1998-09-10  9:27     ` Vladimir Volovich
1998-09-11  6:29       ` Lars Magne Ingebrigtsen
1998-09-11 22:33         ` Vladimir Volovich
1998-09-12  6:24           ` Lars Magne Ingebrigtsen
1998-09-12 14:24             ` Vladimir Volovich
1998-09-12 15:05               ` Vladimir Volovich
1998-09-12 19:07             ` Vladimir Volovich
1998-09-12 21:32               ` Hallvard B Furuseth [this message]
1998-09-13  5:55                 ` Lars Magne Ingebrigtsen
1998-09-13  9:00                   ` Vladimir Volovich
2002-10-20 23:16                     ` Lars Magne Ingebrigtsen
1998-09-13 13:19                       ` Vladimir Volovich
1998-09-14  6:17                         ` Lars Magne Ingebrigtsen
1998-09-14 18:45                           ` Vladimir Volovich
1998-09-16  9:14                             ` Lars Magne Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=HBF.980912jevu@bombur2.uio.no \
    --to=h.b.furuseth@usit.uio.no \
    /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.
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).