Skip to content
Permalink
Browse files

Fix string conversion error message

  • Loading branch information
est31 committed Jun 23, 2015
1 parent 17ba584 commit 6f8bdda90edce0b156ca8df25dea25cc6d7ad49c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/util/string.cpp
@@ -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)) {
infostream << "Couldn't convert wstring 0x" << hex_encode(inbuf, inbuf_size)
<< " into wstring" << std::endl;
<< " into UTF-8 string" << std::endl;
delete[] inbuf;
delete[] outbuf;
return "<invalid wstring>";

0 comments on commit 6f8bdda

Please sign in to comment.