This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix qr'\N{U+41}' on EBCDIC platforms
authorKarl Williamson <khw@cpan.org>
Tue, 17 Mar 2015 04:38:20 +0000 (22:38 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 18 Mar 2015 22:14:37 +0000 (16:14 -0600)
commitb6d67071cc036ae5056dfe9b570ba76942fc08f4
treefa13bf0bff4cbc76df8df602b33174470e3ab31a
parent7a4ca5b4c6cbf0022494a8f350fe000abb4b3034
Fix qr'\N{U+41}' on EBCDIC platforms

Prior to this commit, the regex compiler was relying on the lexer to do
the translation from Unicode to native for \N{...} constructs, where it
was simpler to do.  However, when the pattern is a single-quoted string,
it is passed unchanged to the regex compiler, and did not work.  Fixing
it required some refactoring, though it led to a clean API in a static
function.

This was spotted by Father Chrysostomos.
embed.fnc
proto.h
regcomp.c
t/re/re_tests
toke.c