Skip to content
Browse files

Allow installable_luap to display Unicode characters

installable_luap fails to display Unicode characters. Consider the following snippet:

print "∙";

This yields the following error:

./installable_luap Unicode.lua
Invalid character in ASCII string
current instr.: 'parrot;PCT;HLLCompiler;evalfiles' pc 1468 (compilers/pct/src/PCT/HLLCompiler.pir:756)
called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1719 (compilers/pct/src/PCT/HLLCompiler.pir:875)
called from Sub 'main' pc 27 (luap.pir:27)

This patch fixes the problem for installable_luap, but it remains for installable_lua
  • Loading branch information...
1 parent ee17af1 commit fcf40eed4f939c018e1b435ba85a3ce1acb7e908 @dafrito dafrito committed Aug 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 luap.pir
View
2 luap.pir
@@ -24,7 +24,7 @@ with the standard interface of PCT::HLLCompiler.
$P0 = compreg 'lua'
$S0 = "Compiler Lua 5.1 on Parrot Copyright (C) 2005-2009, Parrot Foundation.\n"
$P0.'commandline_banner'($S0)
- $P0.'command_line'(args)
+ $P0.'command_line'(args, 'encoding'=>'utf8')
.end
=head1 AUTHOR

0 comments on commit fcf40ee

Please sign in to comment.
Something went wrong with that request. Please try again.