Re: regex and UTF-8

2009-10-31 Thread Kevin Kammer
Thanks to all who responded. Though I'm not quite convinced that this is really a mutt bug, and not a peculiarity of mutt interacting with my system, I think I will have to file it as a bug to get any further with it anyway. In the mean time, I think I'm just going to work around it by rewriting

Re: regex and UTF-8

2009-10-30 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Friday, October 30 at 07:36 PM, quoth Kevin Kammer: >On Fri, Oct 30, 2009 at 08:43:21AM -0500, Kyle Wheeler wrote: >> Are you using your system's regex library, or the one that comes with >> mutt? It's possible that your system's regex library has

Re: regex and UTF-8

2009-10-30 Thread Kevin Kammer
On Sat, Oct 31, 2009 at 12:25:32AM +0800, bill lam wrote: > On Fri, 30 Oct 2009, Kevin Kammer wrote: > > $ LC_ALL=C mutt > > AFAIK, gnu sort perform case sensitive sort for POSIX or C locale, > compare output from > > ls |sort # case insensitive in my locale > ls |LC_ALL=C sor

Re: regex and UTF-8

2009-10-30 Thread Kevin Kammer
On Fri, Oct 30, 2009 at 08:43:21AM -0500, Kyle Wheeler wrote: > Are you using your system's regex library, or the one that comes with > mutt? It's possible that your system's regex library has a bug in it > (and it would be nice to eliminate that before blaming mutt for the > problem). > > ~Kyl

Re: regex and UTF-8

2009-10-30 Thread bill lam
On Fri, 30 Oct 2009, Kevin Kammer wrote: > $ LC_ALL=C mutt AFAIK, gnu sort perform case sensitive sort for POSIX or C locale, compare output from ls |sort # case insensitive in my locale ls |LC_ALL=C sort# case sensitive -- regards, ==

Re: regex and UTF-8

2009-10-30 Thread bill lam
I also use utf-8 as system locale and charset in muttrc. But I have no problem in default case-insensitive search. eg. ~f kevin can match Kevin. -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB

Re: regex and UTF-8

2009-10-30 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Friday, October 30 at 02:12 AM, quoth Kevin Kammer: > I was not using any capitalized letters it the regexs. I know that > if one or more letters is/are capitalized, the expression will be > evaluated case-sensitive. Nevertheless, '~f tony' matc

Re: regex and UTF-8

2009-10-30 Thread Christian Brabandt
On Fri, October 30, 2009 7:32 am, Patrick Shanahan wrote: > From the Fine Manual: > > 1. Regular Expressions > >All string patterns in Mutt including those in more complex patterns >must be specified using regular expressions (regexp) in the "POSIX >extended" syntax (which is more or le

Re: regex and UTF-8

2009-10-30 Thread Christian Brabandt
On Fri, October 30, 2009 7:12 am, Kevin Kammer wrote: > I had been trying to create send-hooks and save-hooks, but noticed that, > contrary to all the documentation I could find, Mutt was insisting on > evaluating my regular expressions as case-sensitive. > > I was not using any capitalized letters

Re: regex and UTF-8

2009-10-30 Thread Kevin Kammer
On Fri, Oct 30, 2009 at 02:32:33AM -0400, Patrick Shanahan wrote: > > From the Fine Manual: > > 1. Regular Expressions > > ... > >The search is case sensitive if the pattern contains at least one >upper case letter, and case insensitive otherwise. >

Re: regex and UTF-8

2009-10-29 Thread Patrick Shanahan
* Kevin Kammer [10-30-09 02:15]: > :set &charset ?charset > charset="utf-8" > > Mutt seems to match the rest of the system, but it still doesn't do > case-insensitive regex. However, if I invoke mutt with: > >From the Fine Manual: 1. Regular Expressions All string patterns in Mutt in

regex and UTF-8

2009-10-29 Thread Kevin Kammer
I had been trying to create send-hooks and save-hooks, but noticed that, contrary to all the documentation I could find, Mutt was insisting on evaluating my regular expressions as case-sensitive. I was not using any capitalized letters it the regexs. I know that if one or more letters is/are ca