e3589af56a
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. |
||
---|---|---|
.. | ||
bstream.h | ||
datastreamtest.cpp | ||
ffilestream.cpp | ||
fileback.cpp | ||
filestream.cpp | ||
iostreams.cpp | ||
largefile.cpp | ||
memstream.cpp | ||
socketstream.cpp | ||
sstream.cpp | ||
stdstream.cpp | ||
tempfile.cpp | ||
textstreamtest.cpp | ||
zlibstream.cpp |