]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/streams/sstream.cpp
Ignore empty LC_XXX variables in locale detection code.
[wxWidgets.git] / tests / streams / sstream.cpp
index f94d0373507c7240ca6dae187317520c653b5fd8..3d65dd7eae8566376a1bd310f04fbcdc7019617c 100644 (file)
@@ -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() );