summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-05-09 13:21:21 +0200
committernulltoken <emeric.fermas@gmail.com>2012-05-09 13:21:21 +0200
commit9cd25d0003ed483f40ade3542368a962437f10d2 (patch)
treea5e51e6c497a9dbb8e0e22cf82a95a4c144aaf26 /src/util.h
parent0f49200c9a72f7d8144eb663dee2c684d52ef42a (diff)
downloadlibgit2-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.h2
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__ */