#3718: double utf-8 on "reply"
----------------------+----------------------
 Reporter:  powerman  |      Owner:  mutt-dev
     Type:  defect    |     Status:  new
 Priority:  major     |  Milestone:
Component:  mutt      |    Version:  1.5.22
 Keywords:            |
----------------------+----------------------
 I've just received email (in Russian), which looks correctly inside mutt,
 and it headers also looks good,
 but when I press "r" to reply (using vim as $EDITOR) I got double-encoded
 utf-8 unreadable text in vim
 (actually it may be something else, not double-encoded utf-8, I didn't
 tried to decode it, but looks very similar).

 I've bisect this email: removed all extra headers, multipart, base64,
 replaced all Russian letters with А(A),
 all English letters with Z, and removed most of email content. Now I've
 ~2KB mbox file (attached) which have this issue.
 If I remove one more letter from content (I've tried to remove first, last
 and one in the middle) then this issue disappears.

 So, to see this bug you should:
 {{{
 $ /usr/bin/mutt -f /tmp/mutt-vim-reply-bug.mbox
 <Enter> (enter mbox)
 <Enter> (view email)
 r (reply)
 y (quote)
 }}}
 and then in Vim I get something like:
 {{{
 >  п░п░п░п░п░п░ п░п░п░п░п░ …
 }}}
 instead of
 {{{
 >  АААААА ААААА …
 }}}

 If I just open this mbox file in vim - it opens just fine, so I suppose
 this is bug in mutt.

 I'm using Gentoo Linux, rxvt-unicode-9.20, mutt-1.5.22, vim-7.4.542.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3718>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to