diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-05-09 13:21:21 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-05-09 13:21:21 +0200 |
commit | 9cd25d0003ed483f40ade3542368a962437f10d2 (patch) | |
tree | a5e51e6c497a9dbb8e0e22cf82a95a4c144aaf26 /src/util.h | |
parent | 0f49200c9a72f7d8144eb663dee2c684d52ef42a (diff) | |
download | libgit2-9cd25d0003ed483f40ade3542368a962437f10d2.tar.gz |
util: Fix git__isspace() implementation
The characters <space>, <form-feed>, <newline>, <carriage-return>, <tab>, and <vertical-tab> are part of the "space" definition.
cf. http://www.kernel.org/doc/man-pages/online/pages/man5/locale.5.html
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index 6321e21f5..2081f29f9 100644 --- a/src/util.h +++ b/src/util.h @@ -206,7 +206,7 @@ GIT_INLINE(bool) git__isalpha(int c) GIT_INLINE(bool) git__isspace(int c) { - return (c == ' ' || c == '\t' || c == '\n' || c == '\12'); + return (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r' || c == '\v'); } #endif /* INCLUDE_util_h__ */ |