Fix string conversion error message

This commit is contained in:
est31 2015-06-23 15:04:14 +02:00
parent 17ba584fe2
commit 6f8bdda90e

@ -116,7 +116,7 @@ std::string wide_to_utf8(const std::wstring &input)
if (!convert("UTF-8", "WCHAR_T", outbuf, outbuf_size, inbuf, inbuf_size)) { if (!convert("UTF-8", "WCHAR_T", outbuf, outbuf_size, inbuf, inbuf_size)) {
infostream << "Couldn't convert wstring 0x" << hex_encode(inbuf, inbuf_size) infostream << "Couldn't convert wstring 0x" << hex_encode(inbuf, inbuf_size)
<< " into wstring" << std::endl; << " into UTF-8 string" << std::endl;
delete[] inbuf; delete[] inbuf;
delete[] outbuf; delete[] outbuf;
return "<invalid wstring>"; return "<invalid wstring>";