Commit 4c3b1a1b authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed issue with UTF8 chars. (iOS, Mac, Android, Linux)

parent 8f17a6a7
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath> <OutputPath>..\tests\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
......
Subproject commit bfa01f2256284a2eb3604a6dcc96e0f3795847d7 Subproject commit 0d1e9851d046158e647f1bd45ef2496ab7ee4238
...@@ -384,7 +384,7 @@ namespace NLua ...@@ -384,7 +384,7 @@ namespace NLua
public static int LuaLLoadBuffer (LuaState luaState, string buff, string name) public static int LuaLLoadBuffer (LuaState luaState, string buff, string name)
{ {
return LuaCore.LuaNetLoadBuffer (luaState, buff, (uint)buff.Length, name); return LuaCore.LuaNetLoadBuffer (luaState, buff, (uint)0, name);
} }
public static int LuaLLoadBuffer (LuaState luaState, byte [] buff, string name) public static int LuaLLoadBuffer (LuaState luaState, byte [] buff, string name)
......
...@@ -1829,5 +1829,14 @@ namespace NLuaTest ...@@ -1829,5 +1829,14 @@ namespace NLuaTest
} }
} }
[Test]
public void TestPrintChars ()
{
using (Lua lua = new Lua ()) {
lua.DoString (@"print(""waüäq?=()[&]ß"")");
Assert.IsTrue (true);
}
}
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment