X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3a584a7a6ade199990dd4463488e4bbf3545349..3c62105945ed63c3b7db9e3e14d942727cb056f9:/src/common/textfile.cpp?ds=inline diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index f0e08b4012..adf3aa659b 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -136,6 +136,7 @@ bool wxTextFile::OnRead(wxMBConv& conv) AddLine(str, wxTextFileType_Mac); chLast = ch; #if wxUSE_UNICODE + conv_mbBuf[0] = ch; if (conv.MB2WC(conv_wcBuf, conv_mbBuf, 2) == (size_t)-1) conv_wcBuf[0] = ch; str = conv_wcBuf[0]; @@ -146,6 +147,7 @@ bool wxTextFile::OnRead(wxMBConv& conv) else { // add to the current line #if wxUSE_UNICODE + conv_mbBuf[0] = ch; if (conv.MB2WC(conv_wcBuf, conv_mbBuf, 2) == (size_t)-1) conv_wcBuf[0] = ch; str += conv_wcBuf[0];