mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Reverted Script Unicode fix in r928 as it causes some problems with ANSI encoded files.
This commit is contained in:
parent
754c33f82f
commit
9d370f63e8
@ -232,7 +232,7 @@ void CMeasureScript::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
||||
*/
|
||||
void CMeasureScript::ExecuteBang(const WCHAR* args)
|
||||
{
|
||||
std::string str = ConvertToUTF8(args);
|
||||
std::string str = ConvertToAscii(args);
|
||||
m_LuaScript->RunString(str.c_str());
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ int LuaScript::RunFunctionWithReturn(const char* funcName, double& numValue, std
|
||||
else if (type == LUA_TSTRING)
|
||||
{
|
||||
const char* str = lua_tostring(m_State, -1);
|
||||
strValue = ConvertUTF8ToWide(str);
|
||||
strValue = ConvertToWide(str);
|
||||
numValue = strtod(str, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user