nrother / dynamiclua

Wrapper for NLua, making access to lua more idomatic from .NET. Heavily using the "dynamic" keyword.
63 stars 10 forks source link

UTF-8 BOM causes problems #1

Closed nrother closed 10 years ago

nrother commented 10 years ago

UTF-8 files with Byte-Order-Mark (http://en.wikipedia.org/wiki/Byte_order_mark) at the beginning (like the ones created by Visual Studio) produce parsing errors.

Workaround: Use another Editor like Notepad++ to create a file without BOM.

This is a bug in LuaInterface/Lua itself, so not really in the scope of DynamicLua. It's not easy to fix this in DynamicLua, because a fix would include checking all files passed to Lua, witch can be very slow.

nrother commented 10 years ago

This seems to be fixed in the current version of Lua/NLua and as such in DynamicLua 1.1.