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

mutt/2023: Re: mutt/2023: national symbols in push argument ignored



The following reply was made to PR mutt/2023; it has been noted by GNATS.

From: TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: 
Subject: Re: mutt/2023: national symbols in push argument ignored
Date: Wed, 3 Aug 2005 19:22:20 +0900

 * Wed Aug  3 2005 max630@xxxxxxx <max630@xxxxxxx>
 > >How-To-Repeat:
 > 1. run mutt with LC_CTYPE=ru_RU.KOI8-R                                       
 >                                                           
 > 2. issue the command in ":" command line                                     
 >                                                           
 > push "<tag-pattern>a\304a"                                                   
 >                                                           
 > the result is:                                                               
 >                                                           
 > Tag messages matching: aa                                                    
 >                                                           
 > must be:                                                                     
 >                                                           
 > Tag messages matching: a&#1076;a
 
 I guess, perhaps parse_keycode() will allow you to
 push "<tag-pattern>a<304>a". But I'm not sure. Untested.
 
 --- keymap.c   3 Feb 2005 17:01:43 -0000       3.13
 +++ keymap.c   3 Aug 2005 09:08:46 -0000
 @@ -305,6 +305,12 @@ static void push_string (char *s)
          p = pp - 1;
          continue;
        }
 +      if ((i = parse_keycode(s)) > 0)
 +      {
 +        mutt_ungetch (i, 0);
 +        p = pp - 1;
 +        continue;
 +      }
  
        l = p - pp + 1;
        for (i = 0; KeyNames[i].name; i++)