#3718: double utf-8 on "reply"
-----------------------+----------------------
Reporter: powerman | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: mutt | Version: 1.5.22
Resolution: | Keywords:
-----------------------+----------------------
Comment (by powerman):
Replying to [comment:1 kevin8t8]:
> When editing the reply, what does vim show for
{{{
encoding=utf-8
fileencoding=koi8-r
fileencodings=ucs-bom,utf-8,koi8-r,default
}}}
In ~/.vimrc I've this:
{{{
set fileencodings=ucs-bom,utf-8,koi8-r,default
}}}
If I remove "koi8-r" from that list then reply text in vim looks
correctly, but:
* I can't ":wq" to save it - vim says option 'readonly' is enabled, not
sure why
* there are one extra symbol at end of quoted line: "?" (ascii 3F)
* vim settings in this case are:
{{{
encoding=utf-8
fileencoding=
fileencodings=ucs-bom,utf-8,default
}}}
> When you save and exit the editor, what does mutt show for the message
encoding in the attachments list?
{{{
[text/plain, quoted, utf-8, 2.1K]
}}}
Also, if I view unsent reply's text in mutt there are extra "\320" at end
of quoted line, but except that text looks correctly.
> Are you using any filters between mutt and vim (what is editor set to?)
$EDITOR=/usr/bin/vi (which is symlink to vim).
I don't use any filters in between, but I have some code executed on
`autocmd FileType mail` - disabling it doesn't affect this issue.
> Lastly, what's the default locale for your system?
{{{
$ locale -a
C
en_US
en_US.iso88591
en_US.utf8
POSIX
ru_RU.utf8
$ locale
LANG=ru_RU.utf8
LC_CTYPE="ru_RU.utf8"
LC_NUMERIC=C
LC_TIME="ru_RU.utf8"
LC_COLLATE="ru_RU.utf8"
LC_MONETARY="ru_RU.utf8"
LC_MESSAGES="ru_RU.utf8"
LC_PAPER="ru_RU.utf8"
LC_NAME="ru_RU.utf8"
LC_ADDRESS="ru_RU.utf8"
LC_TELEPHONE="ru_RU.utf8"
LC_MEASUREMENT="ru_RU.utf8"
LC_IDENTIFICATION="ru_RU.utf8"
LC_ALL=
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3718#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent