<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3352: mutt_yesorno() renders non-ascii strings incorrectly (was: incorrect UTF-7 decoding when deleting an IMAP mailbox)



#3352: mutt_yesorno() renders non-ascii strings incorrectly
----------------------------+-----------------------------------------------
 Reporter:  ghen            |       Owner:  mutt-dev
     Type:  defect          |      Status:  new     
 Priority:  major           |   Milestone:          
Component:  user interface  |     Version:  1.5.20  
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by ghen):

  * owner:  brendan => mutt-dev
  * priority:  minor => major
  * status:  infoneeded_new => new
  * component:  IMAP => user interface


Comment:

 The issue is apparently more general, not related to IMAP mailbox name
 encoding...

 All strings printed by mutt_yesorno() are displayed incorrectly when they
 contain non-ASCII characters.  UTF-8 characters are apparently printed as
 if ISO-8859-1, rendering garbage.  Eg. when running mutt with
 LC_MESSAGES=ru_RU.UTF-8:

 ÃÃÂÃÂÃÂÃÃÃÂÃÃ ÃÃÂÃÂÃÂÃÃ Ã Mutt? ([ÃÂÃÂ]/ÃÂÃÂÃ):

 should be "ÐÐÐÐÑÑÐÑÑ ÑÐÐÐÑÑ Ñ Mutt? ([ÐÐ]/ÐÐÑ):",
 translation of "Exit Mutt? ([yes]/no)".

 Messages printed by mutt_message(), mutt_error(), mutt_get_field() are all
 displayed correctly.

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