Skip to content

Fix the existence check for regcomp_l.#3955

Merged
carlosmn merged 1 commit into
libgit2:masterfrom
arthurschreiber:arthur/fix-regcomp_l-check
Oct 7, 2016
Merged

Fix the existence check for regcomp_l.#3955
carlosmn merged 1 commit into
libgit2:masterfrom
arthurschreiber:arthur/fix-regcomp_l-check

Conversation

@arthurschreiber

Copy link
Copy Markdown
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
Copy Markdown
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

carlosmn commented Oct 7, 2016

Copy link
Copy Markdown
Member

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