summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_icolib.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-11 14:21:40 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-11 14:21:40 +0000
commite498e2e961e0edf547cbc478797e69ec8a8d42d4 (patch)
tree3ab5b6a93ffc167deeb2ef8aea0eb4c89efbcbf0 /plugins/MirLua/src/m_icolib.cpp
parent8ecb995a281008dbbc83ba8ea04ef28dbdc3d2e2 (diff)
MirLua: fixed utf8 decoding
git-svn-id: http://svn.miranda-ng.org/main/trunk@14117 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_icolib.cpp')
-rw-r--r--plugins/MirLua/src/m_icolib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_icolib.cpp b/plugins/MirLua/src/m_icolib.cpp
index a1e1a35d24..22da2cbc43 100644
--- a/plugins/MirLua/src/m_icolib.cpp
+++ b/plugins/MirLua/src/m_icolib.cpp
@@ -11,8 +11,8 @@ static int lua_AddIcon(lua_State *L)
SKINICONDESC si = { 0 };
si.flags = SIDF_PATH_TCHAR;
si.pszName = iconName;
- si.description.a = (char*)lua_tostring(L, 2);
- si.section.a = lua_isnone(L, 3) ? MODULE : (char*)lua_tostring(L, 3);
+ si.description.a = mir_utf8decode((char*)luaL_checkstring(L, 2), NULL);
+ si.section.a = lua_isnone(L, 3) ? MODULE : mir_utf8decode((char*)luaL_checkstring(L, 3), NULL);
si.defaultFile.t = filePath;
si.iDefaultIndex = -IDI_ICON;