Skip Menu |
Report information
Id: 66498
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Snowman, comet, regex parser, oh my!
Date: Thu, 11 Jun 2009 08:01:04 +0200
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 863b
<masak> rakudo: say "abc" ~~ m ☃.(.).☄ <p6eval> rakudo 86aeaf: OUTPUT«abc␤» <masak> did somebody report that one? <pmichaud> I don't know if it got rakudobugged. <pmichaud> it did get mentioned during the design meeting <pmichaud> I think my statement was * masak rakudobugs <pmichaud> "What in the world are you doing to the regex engine?!?" <masak> :) <masak> in a very spaced-out way, a snowman and a meteor are kinda symmetric. <masak> but maybe not in the required way... <pmichaud> rakudo: say "abc" ~~ m ☃.(.).☄; say 'ok'; <p6eval> rakudo 86aeaf: OUTPUT«abc␤ok␤» <pmichaud> rakudo: say q☃.(.).☄; <p6eval> rakudo 86aeaf: OUTPUT«Statement not terminated properly [...] <pmichaud> rakudo: say "abc" ~~ m ☃.(.).☄; say $0; <p6eval> rakudo 86aeaf: OUTPUT«abc␤b␤» <pmichaud> looks like it must be something in the regex parser
Subject: [perl #66498] tests available
Date: Fri, 13 Nov 2009 13:10:05 -0600
To: perl6-bugs-followup [...] perl.org
From: kyleha [...] gmail.com
Download (untitled) / with headers
text/plain 1.1k
This is an automatically generated mail to inform you that tests are now available in t/spec/S02-literals/quoting-unicode.t commit 8cac88ed49a48592f4bdadfde9b49d19c4a6314d Author: kyle <kyle@c213334d-75ef-0310-aa23-eaa082d1ae64> Date: Fri Nov 13 19:05:13 2009 +0000 [t/spec] Test for RT 66498: quoting regex with snowman and comet git-svn-id: http://svn.pugscode.org/pugs@29070 c213334d-75ef-0310-aa23-eaa082d1ae64 diff --git a/t/spec/S02-literals/quoting-unicode.t b/t/spec/S02-literals/quoting-unicode.t index 4d6ba4a..d7ba843 100644 --- a/t/spec/S02-literals/quoting-unicode.t +++ b/t/spec/S02-literals/quoting-unicode.t @@ -1,7 +1,6 @@ use v6; use Test; - -plan 70; +plan *; #L<S02/Literals> # TODO: @@ -74,4 +73,15 @@ RIGHT SQUARE BRACKET WITH TICK IN BOTTOM CORNER(U+298D/U+298E)'; is $var, 'b', 'q-style string with LEFT/RIGHT ANGLE BRACKET'; } +# RT #66498 +{ + eval_dies_ok "q\c[SNOWMAN].\c[COMET]", + "Can't quote a string with a snowman and comet (U+2603 and U+2604)"; + #?rakudo todo 'RT 66498' + eval_dies_ok "'RT 66498' ~~ m\c[SNOWMAN].\c[COMET]", + "Can't quote a regex with a snowman and comet (U+2603 and U+2604)"; +} + +done_testing; + # vim: ft=perl6
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 252b
<masak> rakudo: say "abc" ~~ m ☃.(.).☄ <p6eval> rakudo 6c8737: OUTPUT«Confused at line 11 [...] <masak> \o/ <masak> for once, Rakudo and I are confused at the same thing! :) * masak closes the infamous snowman/comet rakudobug :) <masak> pmichaud++


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org