From 9cd25d0003ed483f40ade3542368a962437f10d2 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Wed, 9 May 2012 13:21:21 +0200 Subject: [PATCH] util: Fix git__isspace() implementation The characters , , , , , and are part of the "space" definition. cf. http://www.kernel.org/doc/man-pages/online/pages/man5/locale.5.html --- src/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__ */