diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 5c53b1f162..3fc683abd6 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -486,7 +486,16 @@ wxTextOutputStream& wxTextOutputStream::operator<<(float f) wxTextOutputStream &endl( wxTextOutputStream &stream ) { + //RN: Normally a single char on builds without a real + //wchar_t will call the wxUint16 version, which + //is not what we want (will print a 10 numeric value, + //not a newline). Thus, we need to send it + //a string in that case instead. +#if !wxUSE_UNICODE || wxWCHAR_T_IS_REAL_TYPE return stream << wxT('\n'); +#else + return stream << wxT("\n"); +#endif } #endif