When the subject ends with a character whose last byte in
UTF-8 is either 85 or A0, it appears the character collapses.
To reproduce:

- prepare .mutt/muttrc containing only the following line:
  set edit_headers=yes
- launch mutt and type m to create a new mail.
- enter some e-mail address and a subject.
- vim launches.
- edit Subject line so that it ends with a character such as:
  υ or % or e (whose last byte of their UTF-8 code is 85) or
  ム or 加 (whose last byte of their UTF-8 code is A0).
- type :wq to quit vim.
- the last character is converted to something else.

Would it be possible to somehow avoid this problem?  I cannot avoid
creating e-mails with Japanese characters in Subject and this problem
bugs me quite much.

I am using Mutt 2.2.3 (2022-04-12) installed from homebrew on MacOS
Big Sur 11.6.7 on iMac (2019).

Sincerely,

-- 
Kenichi Asai

Reply via email to