Reverted Script Unicode fix in r928 as it causes some problems with ANSI encoded files.

This commit is contained in:
Birunthan Mohanathas
2011-09-03 18:19:43 +00:00
parent 754c33f82f
commit 9d370f63e8
3 changed files with 4 additions and 4 deletions

View File

@ -109,10 +109,10 @@ void LuaManager::LuaLog(int nLevel, const char* format, ... )
void LuaManager::PushWide(lua_State* L, const WCHAR* str)
{
lua_pushstring(L, ConvertToUTF8(str).c_str());
lua_pushstring(L, ConvertToAscii(str).c_str());
}
std::wstring LuaManager::ToWide(lua_State* L, int narg)
{
return ConvertUTF8ToWide(lua_tostring(L, narg));
return ConvertToWide(lua_tostring(L, narg));
}