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

Regexes behave differently on different OSes #9

Open
frasertweedale opened this issue Jul 22, 2019 · 1 comment
Open

Regexes behave differently on different OSes #9

frasertweedale opened this issue Jul 22, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@frasertweedale
Copy link
Member

Describe the bug
Regex matching can behave differently on different OSes. This basically comes down to
how the system regex(3) library behaves. e.g. on GNU+Linux (glibc), backslash character
classes (e.g. \s for whitespace, \w for alnum + underscore) work fine, but they are not
recognised on FreeBSD and you are restricted to POSIX definitions (e.g. [[:alpha:]]).

Expected behavior
We need to decide on this - whether we want to normalise the behaviour across OSes by switching regex library to something that behaves consistently, or whether we leave it as a caveat and simply document it clearly.

@romanofski romanofski added the enhancement New feature or request label Aug 30, 2019
@frasertweedale
Copy link
Member Author

Urgh, hitting this hard now, trying to test purebred on FreeBSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants