This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #90160] U* gives ‘U0 mode on an empty string’
authorFather Chrysostomos <sprout@cpan.org>
Wed, 18 May 2011 21:35:47 +0000 (14:35 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 18 May 2011 21:36:10 +0000 (14:36 -0700)
commitc5333953a555847ef4f1457905bf0f111a79eb72
treeed4ecae542122978fa917c8adab4ed0dab72cfe6
parent3194a40a2b5938cb9768640166e46dd3bc670e0b
[perl #90160] U* gives ‘U0 mode on an empty string’

This is a regression in 5.10 caused by change 23966/08ca2aa38a29,
which added a bit of faulty logic. It was treating U* in the middle of
a pack template as equivalent to U0, if the input string was empty.
pp_pack.c
t/op/pack.t