[issue3511] Incorrect charset range handling with ignore case flag?

2014-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue17381 (which has more realistic example than [9-A]). -- nosy: +serhiy.storchaka resolution: wont fix -> duplicate superseder: -> IGNORECASE breaks unicode literal range matching ___ Python tracker

[issue3511] Incorrect charset range handling with ignore case flag?

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: EM and MB seemed to agree on closing this. -- nosy: +tjreedy resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue3511] Incorrect charset range handling with ignore case flag?

2009-02-20 Thread Ezio Melotti
Ezio Melotti added the comment: If there's already a patch, then it's fine (and useful for ranges of Unicode chars), but I wouldn't like to find a range like [9-A] around ;) ___ Python tracker __

[issue3511] Incorrect charset range handling with ignore case flag?

2009-02-20 Thread Matthew Barnett
Matthew Barnett added the comment: "[9-A]" is equivalent to "[9:;<=>?...@a]", or should be. It'll be fixed in issue #2636. ___ Python tracker ___

[issue3511] Incorrect charset range handling with ignore case flag?

2009-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: I'd close this as "won't fix", because (IMHO) ranges like [9-A] shouldn't be used at all, so I won't expect it to work properly. FWIW Perl doesn't seem to match the '_', even with the 'i' flag. Tested with: perl -e '$s = ("_" =~ /[9-A]/); print $s' and perl -e '$

[issue3511] Incorrect charset range handling with ignore case flag?

2008-09-24 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs <[EMAIL PROTECTED]> added the comment: I think this is even more complicated when you consider that localization my be an issue. Consider "Á": is this grammatically before "A" or after "a"? From a character set point of view, it is typically after "a" but when Locale is taken

[issue3511] Incorrect charset range handling with ignore case flag?

2008-09-24 Thread Jeffrey C. Jacobs
Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>: -- nosy: +timehorse ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list ma

[issue3511] Incorrect charset range handling with ignore case flag?

2008-08-06 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: -- nosy: +pitrou priority: -> normal versions: +Python 2.6, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3511] Incorrect charset range handling with ignore case flag?

2008-08-06 Thread Matthew Barnett
New submission from Matthew Barnett <[EMAIL PROTECTED]>: While working on the regex code in sre_compile.py I came across the following code in the handling of charset ranges in _optimize_charset: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = 1 The function fixup convert