-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-126505: Fix bugs in compiling case-insensitive character classes #126557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-126505: Fix bugs in compiling case-insensitive character classes #126557
Conversation
…sses * upper-case non-BMP character was ignored * the ASCII flag was ignored when matching a character range whose upper bound is beyond the BMP region
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…sses (pythonGH-126557) * upper-case non-BMP character was ignored * the ASCII flag was ignored when matching a character range whose upper bound is beyond the BMP region (cherry picked from commit 819830f) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-126689 is a backport of this pull request to the 3.13 branch. |
…sses (pythonGH-126557) * upper-case non-BMP character was ignored * the ASCII flag was ignored when matching a character range whose upper bound is beyond the BMP region (cherry picked from commit 819830f) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-126690 is a backport of this pull request to the 3.12 branch. |
…asses (GH-126557) (GH-126690) * upper-case non-BMP character was ignored * the ASCII flag was ignored when matching a character range whose upper bound is beyond the BMP region (cherry picked from commit 819830f) Co-authored-by: Serhiy Storchaka <[email protected]>
…asses (GH-126557) (GH-126689) * upper-case non-BMP character was ignored * the ASCII flag was ignored when matching a character range whose upper bound is beyond the BMP region (cherry picked from commit 819830f) Co-authored-by: Serhiy Storchaka <[email protected]>
if fixup: # IGNORECASE and not LOCALE
av = fixup(av)
charmap[av] = 1 The You can if op is RANGE:
if fixes: # not ASCII
op = RANGE_UNI_IGNORE
hascased = True
else:
assert op is LITERAL
if not hascased and iscased(av):
hascased = True
av = fixup(av) # <- fixup() here
tail.append((op, av))
break |
|
Ok, this is not an important issue. |
…sses (pythonGH-126557) * upper-case non-BMP character was ignored * the ASCII flag was ignored when matching a character range whose upper bound is beyond the BMP region
…sses (pythonGH-126557) * upper-case non-BMP character was ignored * the ASCII flag was ignored when matching a character range whose upper bound is beyond the BMP region
Uh oh!
There was an error while loading. Please reload this page.