Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix the existence check for regcomp_l. #3955

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

Merged

Conversation

arthurschreiber
Copy link
Member

xlocale.h only defines regcomp_l if regex.h was included as well.

@carlosmn I have NO idea why the unit tests were passing - looks like they are not really testing this?! πŸ˜•

@arthurschreiber arthurschreiber force-pushed the arthur/fix-regcomp_l-check branch from 994252c to a6960bf Compare October 7, 2016 18:42
@arthurschreiber arthurschreiber changed the title Fix the existance check for regcomp_l. Fix the existence check for regcomp_l. Oct 7, 2016
@arthurschreiber
Copy link
Member Author

@carlosmn I fixed the tests to actually test with a multibyte locale as well.

`xlocale.h` only defines `regcomp_l` if `regex.h` was included as well.

Also change the test cases to actually test `p_regcomp` works with
a multibyte locale.
@arthurschreiber arthurschreiber force-pushed the arthur/fix-regcomp_l-check branch from b2f4f30 to 3611797 Compare October 7, 2016 19:47
@carlosmn carlosmn merged commit a7df4a9 into libgit2:master Oct 7, 2016
@carlosmn
Copy link
Member

carlosmn commented Oct 7, 2016

It's really annoying that we need code like this, but yeah let's merge it.

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

Successfully merging this pull request may close these issues.

2 participants