This repository has been archived by the owner. It is now read-only.
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...
dafrito committed Aug 4, 2011
1 parent ee17af1 commit fcf40eed4f939c018e1b435ba85a3ce1acb7e908
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.'command_line'(args)
+ $P0.'command_line'(args, 'encoding'=>'utf8')
=head1 AUTHOR

0 comments on commit fcf40ee

Please sign in to comment.