Skip to content

Commit 6f00038

Browse files
committed
regexp_unicode_prop.t: Fix up test for Unicode 16.0
This test was assuming that U+0300 (COMBINING GRAVE ACCENT) matches \p{Inherited}, since it is a combining mark. However Unicode 16.0 has gone through such marks and decided that some are limited to actually just a few scripts, so it is not generally inherited. (One of those scripts is Latin, so it is effectively inherited in French, Spanish, etc.) But it isn't always inheritied, and so it loses that status, and the test fails. I would never have expected this test to be brittle, but so it is. What this commit does is to change to another code point that is till considered Inherited, and the test passes.
1 parent 648bc88 commit 6f00038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/re/regexp_unicode_prop.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ my @CLASSES = (
7474
'Lowercase Letter' => ["h", "!H"],
7575

7676
Common => ["!i", "3"],
77-
Inherited => ["!j", '\x{300}'],
77+
Inherited => ["!j", '\x{31A}'],
7878

7979
InBasicLatin => ['\N{LATIN CAPITAL LETTER A}'],
8080
InLatin1Supplement => ['\N{LATIN CAPITAL LETTER A WITH GRAVE}'],

0 commit comments

Comments
 (0)