mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-10 15:10:14 +01:00
[unicode] Non-characters are allowed in Unicode strings
https://www.unicode.org/faq/private_use.html#nonchar_codes Fixes https://github.com/harfbuzz/harfbuzz/issues/3590
This commit is contained in:
parent
e562ff757b
commit
b41cfe3fe0
1 changed files with 1 additions and 3 deletions
|
|
@ -99,9 +99,7 @@
|
|||
|
||||
#define UNICODE_VALID(Char) \
|
||||
((Char) < 0x110000 && \
|
||||
(((Char) & 0xFFFFF800) != 0xD800) && \
|
||||
((Char) < 0xFDD0 || (Char) > 0xFDEF) && \
|
||||
((Char) & 0xFFFE) != 0xFFFE)
|
||||
(((Char) & 0xFFFFF800) != 0xD800))
|
||||
|
||||
static const char utf8_skip_data[256] = {
|
||||
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue