X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..31f125ed00f3391ba78371c7aa0b4919427050d8:/tests/streams/sstream.cpp diff --git a/tests/streams/sstream.cpp b/tests/streams/sstream.cpp index f94d037350..3d65dd7eae 100644 --- a/tests/streams/sstream.cpp +++ b/tests/streams/sstream.cpp @@ -106,7 +106,7 @@ void strStream::CheckString(const wxString& text) { wxStringOutputStream sos; - const wxCharBuffer buf(text.mb_str()); + const wxCharBuffer buf(text.To8BitData()); sos.Write(buf, buf.length()); CPPUNIT_ASSERT_EQUAL( text, sos.GetString() );