Commit fe5f7722 by Edward Thomson

don't treat 0x85 as whitespace

A byte value of 0x85 is not whitespace, we were conflating that with
U+0085 (UTF8: 0xc2 0x85).  This caused us to incorrectly treat valid
multibyte characters like U+88C5 (UTF8: 0xe8 0xa3 0x85) as whitespace.
parent e8cd4321
...@@ -317,12 +317,12 @@ GIT_INLINE(bool) git__isdigit(int c) ...@@ -317,12 +317,12 @@ GIT_INLINE(bool) git__isdigit(int c)
GIT_INLINE(bool) git__isspace(int c) GIT_INLINE(bool) git__isspace(int c)
{ {
return (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r' || c == '\v' || c == 0x85 /* Unicode CR+LF */); return (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r' || c == '\v');
} }
GIT_INLINE(bool) git__isspace_nonlf(int c) GIT_INLINE(bool) git__isspace_nonlf(int c)
{ {
return (c == ' ' || c == '\t' || c == '\f' || c == '\r' || c == '\v' || c == 0x85 /* Unicode CR+LF */); return (c == ' ' || c == '\t' || c == '\f' || c == '\r' || c == '\v');
} }
GIT_INLINE(bool) git__iswildcard(int c) GIT_INLINE(bool) git__iswildcard(int c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment