Cleaned up utf8 decoding code.

It was actually completely broken in newer wxWidgets versions, putting '\0' characters in the string, which broke things like concatenation.
This commit is contained in:
Twan van Laarhoven
2020-04-08 01:24:19 +02:00
parent 35a89676b4
commit 6e7a4485a8
5 changed files with 39 additions and 83 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ using boost::tribool;
Writer::Writer(const OutputStreamP& output, Version file_app_version)
: indentation(0)
, output(output), stream(*output)
, output(output)
, stream(*output, wxEOL_UNIX, wxMBConvUTF8())
{
stream.WriteString(BYTE_ORDER_MARK);
handle(_("mse_version"), file_app_version);