summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorArthur Schreiber <arthurschreiber@github.com>2016-10-06 13:15:31 +0200
committerArthur Schreiber <arthurschreiber@github.com>2016-10-06 13:15:31 +0200
commitab96ca5572f1aae6bc7f889fbd46f56fc959ba2b (patch)
tree4bb04769f4b5b9081d4516a4075953fc4c80ec63 /src/config.c
parente8ab13b3fd8485086c2a906dac85ecc8fa162d84 (diff)
downloadlibgit2-ab96ca5572f1aae6bc7f889fbd46f56fc959ba2b.tar.gz
Make sure we use the `C` locale for `regcomp` on macOS.
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index f4d4cb2b9..403b7090d 100644
--- a/src/config.c
+++ b/src/config.c
@@ -478,7 +478,7 @@ int git_config_iterator_glob_new(git_config_iterator **out, const git_config *cf
iter = git__calloc(1, sizeof(all_iter));
GITERR_CHECK_ALLOC(iter);
- if ((result = regcomp(&iter->regex, regexp, REG_EXTENDED)) != 0) {
+ if ((result = p_regcomp(&iter->regex, regexp, REG_EXTENDED)) != 0) {
giterr_set_regex(&iter->regex, result);
git__free(iter);
return -1;
@@ -512,7 +512,7 @@ int git_config_backend_foreach_match(
int error = 0;
if (regexp != NULL) {
- if ((error = regcomp(&regex, regexp, REG_EXTENDED)) != 0) {
+ if ((error = p_regcomp(&regex, regexp, REG_EXTENDED)) != 0) {
giterr_set_regex(&regex, error);
regfree(&regex);
return -1;
@@ -1003,7 +1003,7 @@ int git_config_multivar_iterator_new(git_config_iterator **out, const git_config
goto on_error;
if (regexp != NULL) {
- error = regcomp(&iter->regex, regexp, REG_EXTENDED);
+ error = p_regcomp(&iter->regex, regexp, REG_EXTENDED);
if (error != 0) {
giterr_set_regex(&iter->regex, error);
error = -1;