wxWidgets/tests/streams
Vadim Zeitlin e3589af56a Fix wxStringOutputStream position when using external string
Initialize m_pos correctly when using an existing, and hence possibly
not empty, string (and not the internal one which is always empty
initially). The old code was totally wrong as it divided the string
length by the size of wxChar instead of multiplying by it, but doing
this could have been wrong too with UTF-16 and surrogates, so use the
conversion object to compute the real length of the string
representation in the corresponding encoding.

Add a simple unit test checking that this works as intended.

Closes #17985.
2017-11-03 15:25:36 +01:00
..
bstream.h Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
datastreamtest.cpp Handle strings with embedded NULs in wxDataStream 2016-06-04 21:47:12 +02:00
ffilestream.cpp Remove test input file in file stream unit tests only once 2017-11-01 14:45:06 +01:00
fileback.cpp
filestream.cpp Remove test input file in file stream unit tests only once 2017-11-01 14:45:06 +01:00
iostreams.cpp
largefile.cpp Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
memstream.cpp
socketstream.cpp
sstream.cpp Fix wxStringOutputStream position when using external string 2017-11-03 15:25:36 +01:00
stdstream.cpp
tempfile.cpp
textstreamtest.cpp
zlibstream.cpp Add missing break statement 2017-11-02 08:55:00 -07:00