Quoted-Printable bug?

Katsumi Yamaoka yamaoka at jpl.org
Fri Jun 21 09:03:04 JST 2002


Thanks Kinoshita-san, your followup has dispelled all my doubts.
Justus uses Latin-9 charset, not Latin-1.  So, he has written
the following characters in the last message:

(insert
 "A"
 (make-char 'latin-iso8859-15 (+ 0 ?\xE0))
 "A"
 (make-char 'latin-iso8859-15 (+ 0 ?\xE2))
 "A"
 (make-char 'latin-iso8859-15 (+ 0 ?\xE1))
 "A")
 => AaAaAaA  (I replaced all accented `a' with ascii chars)

And I've confirmed that I could reproduce the same bug without
the Mule-UCS Emacs Lisp package under Emacs 21.2.  However,
there is no problem when I use the most recent Emacs 21.3.50
even if Mule-UCS is not loaded.  Is the real cause utf-8 bug on
Emacs 21.2 (possibly and 21.1)?

Of course, it is the fact that existing APEL has a problem as
Kinoshita-san mentioned.  I will install your suggestion in the
CVS repository later.  Excuse me for the late response.

Justus, you can make APEL handle Latin-9 charset without
modifying APEL if you don't want to use Mule-UCS.  To do this,
put the following lines in your .emacs file:

(eval-after-load "mcs-e20"
  '(if (rassq 'iso-8859-15 charsets-mime-charset-alist)
       nil
     (setq charsets-mime-charset-alist
	   (nconc charsets-mime-charset-alist
		  '(((ascii latin-iso8859-15) . iso-8859-15))))))

Otherwise, If you prefer Latin-9 above all other latin charsets,
use the following one instead:

(eval-after-load "mcs-e20"
  '(if (rassq 'iso-8859-15 charsets-mime-charset-alist)
       nil
     (let ((rest (memq (rassq 'us-ascii charsets-mime-charset-alist)
		       charsets-mime-charset-alist)))
       (setcdr rest (cons '((ascii latin-iso8859-15) . iso-8859-15)
			  (cdr rest))))))

>>>>> In [emacs-mime-en : No.00063]
>>>>>	Tatsuya Kinoshita <tats at iris.ne.jp> wrote:

> APEL/10.3 doesn't have an iso-8859-15 entry, so a message is
> encoded with utf-8 instead of iso-8859-15 even if
> enable-multibyte-characters is t.

> (I've already reported this problem to apel-ja at m17n.org,
>  X-Mail-Count: 00676.)

> Anyway, I suggest Mule-UCS and the following configuration:

I also recommend the use of Mule-UCS.  It is available from:

  ftp://ftp.m17n.org/pub/mule/Mule-UCS/Mule-UCS-0.84.tar.gz

In addition, Dave Love has contributed a patch to make Mule-UCS
fast when loading the core module `un-define'.  I'll attach it
including my very small patch:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mule-UCS-0.84.patch
Type: application/octet-stream
Size: 1383 bytes
Desc: not available
URL: <http://lists.chise.org/pipermail/emacs-mime-en/attachments/20020621/5ce25454/attachment.obj>
-------------- next part --------------
-- 
K?t??m? ??m??k? <yamaoka at jpl.org>


More information about the Emacs-mime-en mailing list