Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: mm-with-unibyte-current-buffer is bad for Emacs 23
Date: Fri, 03 Mar 2006 13:29:58 +0900	[thread overview]
Message-ID: <b4mpsl4w3p5.fsf@jpl.org> (raw)
In-Reply-To: <b4m1wxn9hb0.fsf@jpl.org>

>> On Tue, Feb 28 2006, Katsumi Yamaoka wrote:

>>> The macro `mm-with-unibyte-current-buffer' is used here and
>>> there in Gnus.  In Emacs 23, I realized there is a possibility
>>> that it breaks non-ASCII text.

I encountered actual problems.  In Emacs 23, text parts contained
in Japanese multipart messages that are encoded by the shift_jis
charset and the 8bit encoding are displayed with some broken
characters.  In that case, `mm-with-unibyte-current-buffer' is
called at least twice on the raw message; one is for extracting
the whole body, the others are for extracting parts.  The raw
message is broken at the first time the macro is called.  So,
I've modified the `mm-get-part' function so as not to use the
`mm-with-unibyte-current-buffer' macro.

In addition, I've also fixed the display table used in the
summary buffer.  It nixed out data 127 through 255, however some
Latin characters have values 160 through 255 in Emacs 23.  For
example:

(make-char 'latin-iso8859-1 160)
;; Emacs 23
 => 160
;; Emacs 22
 => 2208

Because of this, "Sébastien" was displayed as "S?bastien" in the
summary buffer.

* trunk and v5-10 branch *



      reply	other threads:[~2006-03-03  4:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-28  9:48 Katsumi Yamaoka
2006-02-28 13:40 ` Reiner Steib
2006-02-28 23:47   ` Katsumi Yamaoka
2006-03-03  4:29     ` Katsumi Yamaoka [this message]

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=b4mpsl4w3p5.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    /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).