Skip to content
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

Regex: use PCRE_UCP #11265

Merged
merged 3 commits into from
Oct 22, 2021
Merged

Regex: use PCRE_UCP #11265

merged 3 commits into from
Oct 22, 2021

Conversation

asterite
Copy link
Member

@asterite asterite commented Oct 1, 2021

Fixes #11262
Fixes #4704

See https://www.pcre.org/original/doc/html/pcre_compile.html (search for PCRE_UCP.) It doesn't mention [:print:] but I assume it applies to that as well, because with this it starts working fine.

@asterite asterite added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:text labels Oct 1, 2021
@straight-shoota
Copy link
Member

I'm fine with this change if it works. But according to #4704 (comment) it might not work depending on the compile config of the linked libpcre.

@asterite
Copy link
Member Author

asterite commented Oct 1, 2021

It works for me and I'm on mac. That comment mentions it doesn't work for mac, so I don't know 🤷

CI is green too.

@straight-shoota
Copy link
Member

It was a couple of years ago, maybe it has changed since then 👍

@straight-shoota
Copy link
Member

Should we add a spec for the sample in #4704 as well?

@asterite
Copy link
Member Author

asterite commented Oct 1, 2021

Done!

Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @asterite 🙏

@straight-shoota straight-shoota added this to the 1.3.0 milestone Oct 4, 2021
@straight-shoota
Copy link
Member

Let's merge it for 1.3 and see if there are any issues with the nightly builds.

@straight-shoota straight-shoota merged commit 6bb1df6 into master Oct 22, 2021
@straight-shoota straight-shoota deleted the bug/pcre-ucp branch October 22, 2021 12:43
@straight-shoota straight-shoota changed the title Regex: use PCRE_UCP Regex: use PCRE_UCP Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:text
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/[[:print:]]/ does not match Unicode characters Regex can't match utf-8 characters
3 participants