Commit c3a875c975cde11ffd18947c419b1cd38205e6c3

Russell Belfer 2012-07-10T15:20:08

Adding unicode space to match crlf patterns Adding 0x85 to `git__isspace` since we also look for that in filter.c as a whitespace character.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/util.h b/src/util.h
index adc6650..bc12233 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 == '\f' || c == '\r' || c == '\v');
+    return (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r' || c == '\v' || c == 0x85 /* Unicode CR+LF */);
 }
 
 GIT_INLINE(bool) git__iswildcard(int c)