diff options
author | Edward Thomson <ethomson@microsoft.com> | 2015-05-29 16:56:38 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-05-29 18:16:46 -0400 |
commit | 75a4636f502908ddd406a69a4b065e29b79276da (patch) | |
tree | 8e2a514a518e4efd4746c31e629a8cf7120afcd7 /src/path.c | |
parent | 006548da91bfe05375ae0e786c6c13e9bad85a40 (diff) | |
download | libgit2-75a4636f502908ddd406a69a4b065e29b79276da.tar.gz |
git__tolower: a tolower() that isn't dumb
Some brain damaged tolower() implementations appear to want to
take the locale into account, and this may require taking some
insanely aggressive lock on the locale and slowing down what should
be the most trivial of trivial calls for people who just want to
downcase ASCII.
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c index 81b4d51df..d79153599 100644 --- a/src/path.c +++ b/src/path.c @@ -1471,7 +1471,7 @@ static int32_t next_hfs_char(const char **in, size_t *len) * the ASCII range, which is perfectly fine, because the * git folder name can only be composed of ascii characters */ - return tolower(codepoint); + return git__tolower(codepoint); } return 0; /* NULL byte -- end of string */ } |