summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/t/re/regexp_unicode_prop.t
diff options
context:
space:
mode:
authorafresh1 <afresh1@openbsd.org>2019-02-13 21:15:00 +0000
committerafresh1 <afresh1@openbsd.org>2019-02-13 21:15:00 +0000
commit9f11ffb7133c203312a01e4b986886bc88c7d74b (patch)
tree6618511204c614b20256e4ef9dea39a7b311d638 /gnu/usr.bin/perl/t/re/regexp_unicode_prop.t
parentImport perl-5.28.1 (diff)
downloadwireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.tar.xz
wireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.zip
Fix merge issues, remove excess files - match perl-5.28.1 dist
looking good sthen@, Great! bluhm@
Diffstat (limited to 'gnu/usr.bin/perl/t/re/regexp_unicode_prop.t')
-rwxr-xr-xgnu/usr.bin/perl/t/re/regexp_unicode_prop.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/t/re/regexp_unicode_prop.t b/gnu/usr.bin/perl/t/re/regexp_unicode_prop.t
index 1544482334c..42191dfb211 100755
--- a/gnu/usr.bin/perl/t/re/regexp_unicode_prop.t
+++ b/gnu/usr.bin/perl/t/re/regexp_unicode_prop.t
@@ -100,6 +100,9 @@ my @USER_DEFINED_PROPERTIES = (
Dash => ['-'],
ASCII_Hex_Digit => ['!-', 'A'],
IsAsciiHexAndDash => ['-', 'A'],
+
+ # This overrides the official one
+ InLatin1 => ['\x{0100}', '!\x{00FF}'],
);
my @USER_CASELESS_PROPERTIES = (
@@ -342,6 +345,10 @@ sub IsAsciiHexAndDash {<<'--'}
+utf8::Dash
--
+sub InLatin1 {
+ return "0100\t10FFFF";
+}
+
sub IsMyUpper {
my $caseless = shift;
return "+utf8::"