wxWidgets/tests/streams
Vadim Zeitlin 716ee1223e Use wxString::To8BitData() instead of mb_str() to handle NULs correctly.
In ANSI build wxString::mb_str() returns a pointer to the internal wxString
data directly instead of a buffer with a proper length, so it provides access
to the part of the string before the first embedded NUL only.

Use To8BitData() which always returns the buffer of the correct size in all
builds.

The open question remains whether mb_str() should be changed to return a (non
owned) buffer and not just a pointer in ANSI build. This would make
manipulating strings with embedded NULs safer but mb_str() would be less
efficient and less compatible.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-10 13:53:40 +00:00
..
bstream.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
bstream.h Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
datastreamtest.cpp
ffilestream.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
fileback.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
filestream.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
iostreams.cpp
largefile.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
memstream.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
socketstream.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
sstream.cpp Use wxString::To8BitData() instead of mb_str() to handle NULs correctly. 2010-11-10 13:53:40 +00:00
stdstream.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
tempfile.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
textstreamtest.cpp move TestTextInputStream() function in CppUnit's TextStreamTestCase class 2010-05-16 14:31:00 +00:00
zlibstream.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00