Ticket #575 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Parrot lexicals won't accept unicode identifiers

Reported by: pmichaud Owned by: coke
Priority: normal Milestone:
Component: imcc Version:
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

Lexicals in Parrot don't seem to be able to accept unicode identifiers. Here's a test program:

$ cat x.pir
.sub main :main
    $P0 = box 'hello world'
    .lex unicode:"$\u03b2\u03bf\u03bf", $P0

    $P1 = find_lex unicode:"$\u03b2\u03bf\u03bf"
    say $P1
.end

$ ./parrot x.pir
error:imcc:syntax error, unexpected USTRINGC, expecting STRINGC ('unicode:"$\u03b2\u03bf\u03bf"')
        in file 'x.pir' line 3
$

It's possible that all that is needed is to update imcc to accept USTRINGC for lexical names instead of simply STRINGC.

This fix is needed for Rakudo -- see RT #64878 .

Thanks,

Pm

Change History

Changed 5 years ago by coke

Added this test to

t/compilers/imcc/syn/regressions.t

in r38273.

Changed 5 years ago by coke

  • owner set to coke

Changed 5 years ago by coke

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

Fixed in r38274.

Note: See TracTickets for help on using tickets.