*
* Personally I think 5.12 should disable this for sure. Its a bit more debatable for
* 5.10, so for now im leaving it enabled.
+ * XXX: It is now enabled for 5.11/5.12
*
* -demerphq
*/
-#define PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS 1
+#define PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS 0
/* Should the optimiser take positive assertions into account? */
#define PERL_ENABLE_POSITIVE_ASSERTION_STUDY 0
local $Message = "No SEGV in s/// and UTF-8";
my $s = "s#\x{100}" x 4;
ok $s =~ s/[^\w]/ /g;
- if ($ENV {REAL_POSIX_CC}) {
- iseq $s, "s " x 4;
+ if ( $ENV{PERL_TEST_LEGACY_POSIX_CC} ) {
+ iseq $s, "s \x{100}" x 4;
}
else {
- iseq $s, "s \x{100}" x 4;
+ iseq $s, "s " x 4;
}
}
};
skip "Eval failed ($@)", 1 if $@;
skip "PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS set to 0", 1
- if $ENV {REAL_POSIX_CC};
+ if !$ENV{PERL_TEST_LEGACY_POSIX_CC};
iseq join ('', @isPunctLatin1), '',
'IsPunct agrees with [:punct:] with explicit Latin1';
}
# [perl #60344] Regex lookbehind failure after an (if)then|else in perl 5.10
/\A(?(?=db2)db2|\D+)(?<!processed)\.csv\z/xms sql_processed.csv n - -
/\N{U+0100}/ \x{100} y $& \x{100} # Bug #59328
-[\s][\S] \x{a0}\x{a0} nT - - # TODO Unicode complements should not match same character
+[\s][\S] \x{a0}\x{a0} n - - # Unicode complements should not match same character
# was generating malformed utf8
'[\x{100}\xff]'i \x{ff} y $& \x{ff}
"[:^space:]",
"[:blank:]",
"[:^blank:]" );
-if (not $ENV{REAL_POSIX_CC}) {
+if ($ENV{PERL_TEST_LEGACY_POSIX_CC}) {
$::TODO = "Only works under PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS = 0";
}