Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Allow installable_luap to display Unicode characters
Browse files Browse the repository at this point in the history
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 fcf40ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luap.pir
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcf40ee

Please sign in to comment.