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

Commit

Permalink
Browse files Browse the repository at this point in the history
luaaux.pir: Changed encoding to utf8
This fixes a "Lossy conversion to single byte encoding" error when
trying to run a Lua program with Unicode characters.

A simple test is the following snippet:

print "∙";
  • Loading branch information
dafrito committed Aug 3, 2011
1 parent 8ea8e82 commit ee17af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lib/luaaux.pir
Expand Up @@ -597,7 +597,7 @@ messages and in debug information.
unless $S0 == "\033Lua" goto L2
.tailcall undump(data, chunkname)
L2:
$I0 = find_encoding 'ascii'
$I0 = find_encoding 'utf8'
$S0 = trans_encoding data, $I0
.tailcall parser($S0, chunkname)
.end
Expand Down

0 comments on commit ee17af1

Please sign in to comment.