emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

23.0.60; rmail initial misdecoding of iso-8859-15 mail (quoted-printable


From: David Golden
Subject: 23.0.60; rmail initial misdecoding of iso-8859-15 mail (quoted-printable at least)
Date: Sat, 19 Jan 2008 00:02:20 +0000
User-agent: KMail/1.9.7

In rmail, fetching iso-8859-15 mail isn't working right, at least of
format:
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

...

To reproduce (only emacs-unicode-2 branch tested):

Have an email indicating iso-8859-15, with iso-8859-15 characters.  
(see included example unix mailbox  mbox.iso-8859-15) have rmail fetch 
it (C-u g mbox.iso-8859-15) into rmail.

It is misdecoded, the euro currency character #A4 becomes the 
international currency symbol (as it would be in iso-8859-1).

However, the coding system for the mail is iso-8859-15, only now the 
decoded mail has a character invalid for iso-8859-15 embedded in it, so 
if you then e.g.  rmail-redecode-body,  the international currency 
symbol is not  preserved and/or fixed but rather lost, quite probably 
because  reencoding from back to iso-8859-15
(rightly) can't handle the international currency symbol.

Note that starting from iso-8859-1 doesn't exhibit this behaviour -
you can fetch an iso-8859-1 mail with the international currency
character, rmail-redecode-body to iso-8859-15, and it (correctly) 
becomes the euro sign, rmail-redecode-body back to iso-8859-1, and it 
(correctly) becomes the international currency sign again.
(try  C-u g  of the also attached  mbox.iso-8859-1  )

...
In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.3)
 of 2008-01-18 on golden1
Windowing system distributor `The X.Org Foundation', version 
11.0.10400000
configured using 
`configure  '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' 
'--with-freetype' '--with-xft' '--with-gtk' '--enable-font-backend' 
'--prefix=/home/david/emacs''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> M-x r m a i l <return> C-u g m b o x . 
i s o - 8 8 <tab> <return> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> M-x 
r m a i l - r e d <tab> <return> i s o - 8 8 5 9 - 
1 5 <return> M-x r m a i l - r e d e c o <tab> <return> 
i s o - 8 8 5 9 - 1 <return> C-x k <return> y e s <return> 
<help-echo> <help-echo> <help-echo> <help-echo> M-x 
r m n <backspace> a i l <return> C-u g m b o x . i 
s o <tab> 5 <return> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> M-x r m a 
i l - r e d e <tab> <return> i s o - 8 8 5 9 - 1 5 
<return> M-x r e o i <backspace> <backspace> p o <tab> 
r <tab> <return>

Recent messages:
Counting new messages...done (1)
Wrote /home/david/RMAIL
1 new message read
Counting messages...done
(No new mail has arrived)
Getting mail from /home/david/mbox.iso-8859-15...
Counting new messages...done (1)
Wrote /home/david/RMAIL
1 new message read
Making completion list...


-------------------------------------------------------
Have an iso-8859-15 email with iso-8859-15 characters. 
(see included example unix mailbox  mbox.iso-8859-15)
have rmail fetch it (C-u g  mbox.iso-8859-15) into rmail.

It is misdecoded, the euro currency character becomes the
international currency symbol (as it would be in iso-8859-1).
However, the coding system for the mail is iso-8859-15,
only now the decoded mail has a character invalid for
 iso-8859-15 in it, so if you then rmail-redecode-body, 
the international currency  symbol is not  preserved and/or 
fixed but rather lost.

Note that starting from iso-8859-1 doesn't exhibit this behaviour -
you can fetch an iso-8859-1 mail with the international currency
character, rmail-redecode-body to iso-8859-15, and it (correctly) becomes
the euro sign, rmail-redecode-body back to iso-8859-1, and it (correctly)
becomes the international currency sign again.
(try  C-u g  of the also attached  mbox.iso-8859-1  )







In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.3)
 of 2008-01-18 on golden1
Windowing system distributor `The X.Org Foundation', version 11.0.10400000
configured using `configure  '--with-xpm' '--with-jpeg' '--with-tiff' 
'--with-gif' '--with-png' '--with-freetype' '--with-xft' '--with-gtk' 
'--enable-font-backend' '--prefix=/home/david/emacs''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> M-x r m a i l <return> C-u g m b o x . 
i s o - 8 8 <tab> <return> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> M-x 
r m a i l - r e d <tab> <return> i s o - 8 8 5 9 - 
1 5 <return> M-x r m a i l - r e d e c o <tab> <return> 
i s o - 8 8 5 9 - 1 <return> C-x k <return> y e s <return> 
<help-echo> <help-echo> <help-echo> <help-echo> M-x 
r m n <backspace> a i l <return> C-u g m b o x . i 
s o <tab> 5 <return> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> M-x r m a 
i l - r e d e <tab> <return> i s o - 8 8 5 9 - 1 5 
<return> M-x r e o i <backspace> <backspace> p o <tab> 
r <tab> <return>

Recent messages:
Counting new messages...done (1)
Wrote /home/david/RMAIL
1 new message read
Counting messages...done
(No new mail has arrived)
Getting mail from /home/david/mbox.iso-8859-15...
Counting new messages...done (1)
Wrote /home/david/RMAIL
1 new message read
Making completion list...

Attachment: mbox.iso-8859-1
Description: application/mbox

Attachment: mbox.iso-8859-15
Description: application/mbox


reply via email to

[Prev in Thread] Current Thread [Next in Thread]