remove iconv code

This commit is contained in:
Jinhao
2019-06-27 07:47:36 +08:00
parent 975993ff33
commit 065e6f3081
4 changed files with 21 additions and 6 deletions

View File

@@ -512,11 +512,16 @@ namespace detail
auto const native_window = rruntime->window->root;
#if 0 //deprecated
nana::detail::charset_conv charset(NANA_UNICODE, "UTF-8");
const std::string& str = charset.charset(std::string(keybuf, keybuf + keybuf_len));
auto const charbuf = reinterpret_cast<const wchar_t*>(str.c_str());
auto const len = str.size() / sizeof(wchar_t);
#else
auto wstr = nana::to_wstring(std::string{keybuf, keybuf + keybuf_len});
auto const charbuf = wstr.c_str();
auto const len = wstr.length();
#endif
for(std::size_t i = 0; i < len; ++i)
{