| Store | Cart

[perl #128738] \x{ffffffff} as string delim preserves \\

From: Father Chrysostomos via RT <perl...@perl.org>
Tue, 26 Jul 2016 00:39:52 -0700
On Tue Jul 26 00:28:37 2016, sprout wrote:
> OK, so this is the *real* bug I was after when I opened ticket #128737> (when I wasn’t thinking):> > $ ./miniperl  -e 'eval "print q \x{fffffff}Hello,> \\\\whirled!\n\x{fffffff}" or die;'> Hello, \whirled!> > That is expected.  But add another f:> > $ ./miniperl  -e 'eval "print q \x{ffffffff}Hello,> \\\\whirled!\n\x{ffffffff}" or die;'> Hello, \\whirled!> > And \\ in a q() string is now being preserved, instead of being> changed to a single backslash.> > Same results from 5.8.7 to 5.25.3.

Another symptom of the same bug:

\x{100000027} acts as a single quote for regexps:

$ ./miniperl -le 'eval "print qr \x{100000027}\$^O\x{100000027}" || die'
(?^:$^O)
$ ./miniperl -le 'eval "print qr \x{10000002}\$^O\x{10000002}" || die'
(?^:darwin)


-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=128738

Recent Messages in this Thread
Father Chrysostomos (via RT) Jul 26, 2016 07:28 am
Father Chrysostomos via RT Jul 26, 2016 07:39 am
Karl Williamson Jul 28, 2016 02:48 am
Karl Williamson via RT Aug 05, 2016 10:50 pm
Messages in this thread