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

Unicode digits cause an error in radix bases, match variables, and type constraints #5676

Closed
p6rt opened this issue Sep 16, 2016 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Sep 16, 2016

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

Searchable as RT129279$

@p6rt
Copy link
Author

p6rt commented Sep 16, 2016

From @MasterDuke17

<MasterDuke> m​: say :3<12>
<camelia> rakudo-moar 466770​: OUTPUT«5␤»
<MasterDuke> m​: say :۳<12>
<camelia> rakudo-moar 466770​: OUTPUT«===SORRY!===␤Error encoding ASCII string​: could not encode codepoint 1779␤»

<MasterDuke> m​: "a b" ~~ /(\w) \s (\w)/; say $1
<camelia> rakudo-moar 466770​: OUTPUT«「b」␤»
<MasterDuke> m​: "a b" ~~ /(\w) \s (\w)/; say $١
<camelia> rakudo-moar 466770​: OUTPUT«===SORRY!===␤Error encoding ASCII string​: could not encode codepoint 1633␤»

<MasterDuke> m​: sub f(-1) { say "hi" }; say f(-1)
<camelia> rakudo-moar 466770​: OUTPUT«hi␤True␤»
<MasterDuke> m​: sub f(-١) { say "hi" }; say f(-1)
<camelia> rakudo-moar 466770​: OUTPUT«===SORRY!===␤Error encoding ASCII string​: could not encode codepoint 1633␤»

@p6rt
Copy link
Author

p6rt commented Sep 16, 2016

From @MasterDuke17

Fixed in rakudo/rakudo#878

Tests in Raku/roast@968764ed4d

@p6rt
Copy link
Author

p6rt commented Sep 16, 2016

@MasterDuke17 - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant