[Using Mutt-1.5.21 with FreeBSD and Arch Linux]

Hi there,

I noticed a nasty behaviour I do not understand. It happens if the e-mail
contains latin characters with acute, like 'é', but no unicode character not
covered by latin1. The text editor -- Emacs, but I tested with others too --
will correctly set it to UTF-8.

  file /tmp/mutt-...

will confirm this.

When I close the editor, thus swithing back to Mutt, it sees the content as
iso8859-1. This is on the "Mutt Compose" screen, right before actually sending
the mail.  Of course I can convert it at this very same point with the
'edit-type' function. But I do not want to do it manually. It would be nice if I
could send all my mails in UTF-8 automatically.

If I add a unicode character not covered by Latin1 (e.g. '€'), then the e-mail
is correctly marked as being utf-8.

All my locale variables are set to "en_US.UTF-8". And

  :set &charset ?charset

returns 'utf-8'.

So I guess it comes from Mutt that fails at guessing the proper character
encoding. I do not know how it works internally, but I do not have so much time
right now to crawl in the source code.

To reproduce the issue: write a e-mail with the sole letter 'é' as content.

Note that the e-mail is not screwed up. It gets properly converted from utf-8 to
latin1, 'é' goes from a9c3 (utf-8) to e9 (latin1).

Any clue?

Cheers.

Reply via email to