This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.h: Use correct definition of start byte
[perl5.git] / utf8.h
diff --git a/utf8.h b/utf8.h
index 152a937..06418d6 100644 (file)
--- a/utf8.h
+++ b/utf8.h
@@ -139,9 +139,7 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
 */
 
 #define UNI_IS_INVARIANT(c)            (((UV)c) <  0x80)
-/* Note that C0 and C1 are invalid in legal UTF8, so the lower bound of the
- * below might ought to be C2 */
-#define UTF8_IS_START(c)               (((U8)c) >= 0xc0)
+#define UTF8_IS_START(c)               (((U8)c) >= 0xc2)
 #define UTF8_IS_CONTINUATION(c)                (((U8)c) >= 0x80 && (((U8)c) <= 0xbf))
 #define UTF8_IS_CONTINUED(c)           (((U8)c) &  0x80)