From: David Golden <david.golden@oceanfree.net>
To: emacs-pretest-bug@gnu.org
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 [thread overview]
Message-ID: <200801190002.20483.david.golden@oceanfree.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 3386 bytes --]
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...
-------------------------------------------------------
[-- Attachment #2: 23.0.60; rmail initial decoding of iso-8859-15 [quoted-printable at least] mail --]
[-- Type: text/plain, Size: 2945 bytes --]
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 #3: mbox.iso-8859-1 --]
[-- Type: application/mbox, Size: 907 bytes --]
[-- Attachment #4: mbox.iso-8859-15 --]
[-- Type: application/mbox, Size: 911 bytes --]
[-- Attachment #5: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2008-01-19 0:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-19 0:02 David Golden [this message]
2008-01-23 2:38 ` 23.0.60; rmail initial misdecoding of iso-8859-15 mail (quoted-printable at least) David Golden
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=200801190002.20483.david.golden@oceanfree.net \
--to=david.golden@oceanfree.net \
--cc=emacs-pretest-bug@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.