From 929bc61cf50d50707e61c6ca84465fa3d0917ce6 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 12 Mar 2016 13:48:42 +0100 Subject: [PATCH] src/gui/test_menu.cpp fix pugixml compil --- src/gui/test_menu.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index 02e839237..e3690d791 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -135,13 +135,12 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey) CVFD::getInstance()->ShowIcon((fp_icon) 0x09000002, true); CVFD::getInstance()->ShowIcon((fp_icon) 0x0B000002, true); char text[255]; - char buf[XML_UTF8_ENCODE_MAX]; int ch = 0x2588; - int len = XmlUtf8Encode(ch, buf); - + std::string tmp = Unicode_Character_to_UTF8(ch); + size_t len = tmp.size(); for (int i = 0; i < 12; i++) { - memmove(&text[i*len], buf, len); + memmove(&text[i*len], tmp.c_str(), len); } text[12*len] = 0;