diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-07-23 16:03:11 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-07-23 16:03:11 +0200 |
commit | 24cfbfd56fb2f382b720c9dd5f53ced72e8230f3 (patch) | |
tree | 5fca85ade9d95837d21fa6e81849cf05317c1007 | |
parent | 077e61fad3c5fbdbe8df4371b88f64bcc4a6bccd (diff) | |
download | php-git-24cfbfd56fb2f382b720c9dd5f53ced72e8230f3.tar.gz |
Update ucgendat for more bidi properties
Handle them the same way as others -- by classifying as Other
Neutral.
-rw-r--r-- | ext/mbstring/ucgendat/ucgendat.c | 10 | ||||
-rw-r--r-- | ext/mbstring/unicode_data.h | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/ext/mbstring/ucgendat/ucgendat.c b/ext/mbstring/ucgendat/ucgendat.c index 42441082ef..c0d9b432ba 100644 --- a/ext/mbstring/ucgendat/ucgendat.c +++ b/ext/mbstring/ucgendat/ucgendat.c @@ -336,7 +336,9 @@ ordered_range_insert(ac_uint4 c, char *name, int len) (len == 3 && (memcmp(name, "NSM", 3) == 0 || memcmp(name, "PDF", 3) == 0 || memcmp(name, "LRE", 3) == 0 || memcmp(name, "LRO", 3) == 0 || - memcmp(name, "RLE", 3) == 0 || memcmp(name, "RLO", 3) == 0))) { + memcmp(name, "RLE", 3) == 0 || memcmp(name, "RLO", 3) == 0 || + memcmp(name, "LRI", 3) == 0 || memcmp(name, "RLI", 3) == 0 || + memcmp(name, "FSI", 3) == 0 || memcmp(name, "PDI", 3) == 0))) { /* * Mark all of these as Other Neutral to preserve compatibility with * older versions. @@ -350,8 +352,10 @@ ordered_range_insert(ac_uint4 c, char *name, int len) break; } - if (i == NUMPROPS) - return; + if (i == NUMPROPS) { + printf("Unknown property %s\n", name); + return; + } /* * Have a match, so insert the code in order. diff --git a/ext/mbstring/unicode_data.h b/ext/mbstring/unicode_data.h index c176128cf1..580caaaf7c 100644 --- a/ext/mbstring/unicode_data.h +++ b/ext/mbstring/unicode_data.h @@ -1887,7 +1887,7 @@ static const unsigned int _ucprop_ranges[] = { 0x0000200b, 0x0000200d, 0x00002010, 0x00002027, 0x0000202a, 0x0000202e, 0x00002035, 0x00002043, 0x00002045, 0x0000205e, 0x00002060, 0x00002064, - 0x0000206a, 0x0000206f, 0x0000207c, 0x0000207e, + 0x00002066, 0x0000206f, 0x0000207c, 0x0000207e, 0x0000208c, 0x0000208e, 0x000020d0, 0x000020f0, 0x00002100, 0x00002101, 0x00002103, 0x00002106, 0x00002108, 0x00002109, 0x00002114, 0x00002114, |