Ticket #654 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

[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

Changed 6 years ago by chromatic

  • status changed from new to closed
  • resolution set to fixed

Parrot r38769 makes this test pass. All other Parrot tests pass as well.

Note: See TracTickets for help on using tickets.