Ticket #654 (closed bug: fixed)
[bug] Parrot named arguments choke on unicode names
Reported by: | pmichaud | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 1.1.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
Named arguments in Parrot don't appear to accept unicode identifiers. Here's a test program:
$ cat x.pir # Perl 6: foo(ä => 1); .sub 'main' :main 'foo'(1 :named(unicode:"\x{e4}")) .end # Perl 6: sub foo(:$ä) { say "ok $ä"; } .sub 'foo' .param int x :named(unicode:"\x{e4}") print "ok " say x .end $ ./parrot x.pir error:imcc:syntax error, unexpected USTRINGC, expecting STRINGC ('unicode:"\x{e4}"') in file 'x.pir' line 3 error:imcc:syntax error, unexpected USTRINGC, expecting STRINGC ('unicode:"\x{e4}"') in file 'x.pir' line 8 $
As with TT #575, it's possible that all that is needed here is an update to IMCC.
This fix is needed for unicode named arguments in Rakudo -- see RT #65512 .
Pm
Change History
Note: See
TracTickets for help on using
tickets.