Skip Menu |

This queue is for tickets about the Lingua-JA-Kana CPAN distribution.

Report information
The Basics
Id: 63929
Status: resolved
Priority: 0/
Queue: Lingua-JA-Kana

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc: dland [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: (no value)



CC: DLAND [...] cpan.org
Subject: Since bleadperl v5.13.5-11-gfb85c04 fails if Regexp::Assemble is installed
For the record: first came bleadperl v5.13.5-11-gfb85c04 and changed how qr// stringifies. This broke Regexp::Assemble's tests. Then I provided a patch for these tests at https://rt.cpan.org/Ticket/Display.html?id=62262. From then on I installed Regexp::Assemble into many of my smokers. Now the pattern became visible that Lingua-JA-Kana-0.04 fails its tests when Regexp-Assemble is installed. A cursory look into Kana.pm shows me these lines: substr( $str, 0, 8, '' ); # remove '(?-xism:' substr( $str, -1, 1, '' ); # and ')'; Dan, such code is obsolete now. I have no idea how this should be solved especially since Yves Orten recently posted the opinion that the qr// stringification is and will stay undocumented. See Message-ID: <AANLkTik2ktN7_NQ1_ZsJRcdVBX-OH+GF1XUyaW==0zJx@mail.gmail.com> in http://rt.perl.org/rt3/Ticket/Display.html?id=80212 HTH, Best,
Since Regexp-Assemple-0.35 is out the problem can be seen without any patching. The test t/00-load.t fails when Regexp::Assemble is available for all bleadperls starting from v5.13.5-11-gfb85c04. The culprit is in Kana.pm in the lines already reported, this time with line numbers 122 substr( $str, 0, 8, '' ); # remove '(?-xism:' 123 substr( $str, -1, 1, '' ); # and ')'; Editing stringified regular expressions has become more difficult.
Looks like this has been solved as of 0.06. Dan the Maintainer Thereof On Sun Apr 17 03:07:57 2011, ANDK wrote: Show quoted text
> Since Regexp-Assemple-0.35 is out the problem can be seen without any > patching. The test t/00-load.t fails when Regexp::Assemble is available > for all bleadperls starting from v5.13.5-11-gfb85c04. > > The culprit is in Kana.pm in the lines already reported, this time with > line numbers > > 122 substr( $str, 0, 8, '' ); # remove '(?-xism:' > 123 substr( $str, -1, 1, '' ); # and ')'; > > Editing stringified regular expressions has become more difficult.