projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
buncha MacPerl patches for bleadperl
[p5sagit/p5-mst-13.2.git]
/
utf8.c
diff --git
a/utf8.c
b/utf8.c
index
4555ecb
..
a36cc74
100644
(file)
--- a/
utf8.c
+++ b/
utf8.c
@@
-610,7
+610,7
@@
Perl_bytes_from_utf8(pTHX_ U8* s, STRLEN *len, bool *is_utf8)
U8 c = *s++;
if (!UTF8_IS_ASCII(c)) {
if (UTF8_IS_CONTINUATION(c) || s >= send ||
- !UTF8_IS_CONTINUATION(*s) || (c & 0xfc) != 0xc0)
+ !UTF8_IS_CONTINUATION(*s) || UTF8_IS_DOWNGRADEABLE_START(c))
return start;
s++, count++;
}