Permalink
Browse files

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...
1 parent 8ea8e82 commit ee17af1c560171e3f0fc0264e86f73c070416212 @dafrito dafrito committed Aug 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lua/lib/luaaux.pir
View
@@ -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

0 comments on commit ee17af1

Please sign in to comment.