mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user