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
..
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-10-01 09:41:49 -07:00
2017-10-21 17:42:30 +02:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:21 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 08:56:29 -07:00
2017-02-20 17:46:45 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2013-07-26 16:02:46 +00:00
2017-06-22 02:04:50 +04:00
2016-02-05 22:43:23 +01:00
2017-11-02 01:53:16 +01:00
2015-04-23 22:00:35 +04:00
2013-07-26 16:02:46 +00:00
2017-11-02 01:53:21 +01:00
2017-10-28 15:12:14 +02:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-03-11 03:37:07 +01:00
2016-06-29 18:26:11 +02:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2016-06-26 18:36:11 +02:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2015-04-23 22:00:35 +04:00
2017-11-02 01:53:16 +01:00
2017-07-04 13:15:14 -06:00
2017-11-02 01:53:16 +01:00
2015-04-23 22:00:35 +04:00
2017-11-02 01:53:16 +01:00
2013-07-26 16:02:46 +00:00
2015-10-11 01:00:38 +02:00
2017-11-03 15:25:36 +01:00
2017-11-02 01:53:16 +01:00
2017-07-04 13:15:14 -06:00
2017-11-02 01:53:25 +01:00
2015-04-23 22:00:35 +04:00
2017-11-02 01:53:16 +01:00
2014-09-23 17:44:30 +00:00
2015-04-23 22:00:35 +04:00
2015-04-23 22:00:35 +04:00
2015-04-23 22:00:35 +04:00
2015-04-23 22:00:35 +04:00
2017-11-02 01:53:16 +01:00
2014-07-14 19:17:12 +00:00
2014-07-14 19:17:12 +00:00
2011-09-29 13:47:38 +00:00
2015-03-19 21:46:05 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:29 +01:00
2016-02-05 22:43:23 +01:00
2016-02-05 22:43:23 +01:00
2016-02-05 22:43:23 +01:00
2016-02-05 22:43:23 +01:00
2017-03-11 17:55:08 +01:00
2017-11-02 01:53:16 +01:00
2017-03-18 15:14:26 +01:00
2017-11-02 01:53:16 +01:00
2017-10-21 17:42:30 +02:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-10-21 17:42:30 +02:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2017-10-21 17:42:30 +02:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2016-02-05 22:43:23 +01:00
2016-02-05 22:43:23 +01:00
2016-02-05 22:43:23 +01:00
2016-02-05 22:43:23 +01:00
2017-03-18 15:14:26 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:33 +01:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00
2016-02-27 02:41:18 +01:00
2013-07-26 16:02:46 +00:00
2017-11-02 01:53:16 +01:00
2013-07-26 16:02:46 +00:00
2017-11-02 01:53:16 +01:00
2017-11-02 01:53:16 +01:00