Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bc/commit-invalid-utf8'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 5 Aug 2013 17:11:04 +0000
(10:11 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 5 Aug 2013 17:11:04 +0000
(10:11 -0700)
* bc/commit-invalid-utf8:
commit: typofix for xxFFF[EF] check
commit.c
patch
|
blob
|
history
raw
(from parent 1:
d6cbf2f
)
diff --git
a/commit.c
b/commit.c
index e5862f6d7c813b4bcc5dd672383e56152ceb6f80..a575564a15c1c340b36d10c90da8fa343692264d 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-1416,7
+1416,7
@@
static int find_invalid_utf8(const char *buf, int len)
if ((codepoint & 0x1ff800) == 0xd800)
return bad_offset;
/* U+xxFFFE and U+xxFFFF are guaranteed non-characters. */
- if ((codepoint & 0xfff
f
e) == 0xfffe)
+ if ((codepoint & 0xfffe) == 0xfffe)
return bad_offset;
/* So are anything in the range U+FDD0..U+FDEF. */
if (codepoint >= 0xfdd0 && codepoint <= 0xfdef)