diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-26 08:24:48 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-26 08:24:48 +0000 |
commit | 25c14cc836043b6307638bd18706992e51f02d99 (patch) | |
tree | 011fdb02380089461b4f50c84aefd6431931ffc7 /plugins/MirLua | |
parent | deb05176bf259030db8d5f8ff7c68b5feb325770 (diff) |
MirLua: menu encoding fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14392 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index 3d5a041c4b..d40922b0f6 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -10,12 +10,12 @@ static CLISTMENUITEM* MakeMenuItem(lua_State *L) pmi->flags = lua_tointeger(L, -1);
lua_pop(L, 1);
+ if (!(pmi->flags & CMIF_UNICODE))
+ pmi->flags |= CMIF_UNICODE;
+
lua_pushstring(L, "Name");
lua_gettable(L, -2);
- if (!(pmi->flags & CMIF_UNICODE))
- pmi->pszName = mir_utf8decode((char*)lua_tostring(L, -1), NULL);
- else
- pmi->ptszName = mir_utf8decodeT((char*)luaL_checkstring(L, -1));
+ pmi->ptszName = mir_utf8decodeT((char*)luaL_checkstring(L, -1));
lua_pop(L, 1);
lua_pushstring(L, "Position");
|