Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greek letters in variable names do not work in Rakudo #920

Closed
p6rt opened this issue Apr 20, 2009 · 7 comments
Closed

Greek letters in variable names do not work in Rakudo #920

p6rt opened this issue Apr 20, 2009 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Apr 20, 2009

Migrated from rt.perl.org#64878 (status was 'resolved')

Searchable as RT64878$

@p6rt
Copy link
Author

p6rt commented Apr 20, 2009

From @masak

<wayland> rakudo​: my $βοο = "καλλω"; print $βοο;
<p6eval> rakudo 0d5515​: OUTPUT«error​:imcc​:syntax error, unexpected
USTRINGC, expecting STRINGC ('unicode​:"$\u03b2\u03bf\u03bf"') [...]
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Apr 20, 2009

From @masak

<wayland> rakudo​: my $βοο = "call"; print $βοο;
<p6eval> rakudo 0d5515​: OUTPUT«error​:imcc​:syntax error, unexpected
USTRINGC, expecting STRINGC ('unicode​:"$\u03b2\u03bf\u03bf"') [...]
Lexical '$βοο' not found [...]
<pmichaud> Parrot won't accept unicode lexicals?!
<pmichaud> that's just.... wrong.
<wayland> Yeah, it's definitely the variable :)
<pmichaud> rakudo​: my $boo = '$βοο'; say $boo
<p6eval> rakudo 0d5515​: OUTPUT«$βοο␤»
<pmichaud> Yes, that must be the problem.
<wayland> rakudo​: my $þor = "will smite you for θις";
<p6eval> rakudo 0d5515​: OUTPUT«error​:imcc​:syntax error, unexpected
USTRINGC, expecting STRINGC ('unicode​:"$\x{fe}or"') [...]
<wayland> (sorry :)
<pmichaud> Ugh, IMCC bug.
<wayland> Not even Latin-1 unicode

@p6rt
Copy link
Author

p6rt commented Apr 20, 2009

@masak - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 22, 2009

From @pmichaud

On Mon, Apr 20, 2009 at 12​:32​:05AM -0700, Carl Mäsak wrote​:

<wayland> rakudo​: my $βοο = "καλλω"; print $βοο;
<p6eval> rakudo 0d5515​: OUTPUT«error​:imcc​:syntax error, unexpected
USTRINGC, expecting STRINGC ('unicode​:"$\u03b2\u03bf\u03bf"') [...]
* masak submits rakudobug

The problem seems to be that Parrot only supports ascii (or perhaps
latin-1) in lexical variable names. I've filed the bug as
TT #​575 -- when that bug is fixed this problem should go away also.

Thanks!

Pm

@p6rt
Copy link
Author

p6rt commented Apr 22, 2009

From @coke

On Wed Apr 22 11​:50​:02 2009, pmichaud wrote​:

On Mon, Apr 20, 2009 at 12​:32​:05AM -0700, Carl Mäsak wrote​:

<wayland> rakudo​: my $βοο = "καλλω"; print $βοο;
<p6eval> rakudo 0d5515​: OUTPUT«error​:imcc​:syntax error, unexpected
USTRINGC, expecting STRINGC ('unicode​:"$\u03b2\u03bf\u03bf"') [...]
* masak submits rakudobug

The problem seems to be that Parrot only supports ascii (or perhaps
latin-1) in lexical variable names. I've filed the bug as
TT #​575 -- when that bug is fixed this problem should go away also.

Thanks!

Pm

Fixed in parrot in r38274.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Apr 23, 2009

From @moritz

... and tested in S02-lexical-conventions/unicode.t (and PARROT_REVISION
bumped).

@p6rt
Copy link
Author

p6rt commented Apr 23, 2009

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Apr 23, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant