Vadim Zeitlin
264f01824b
Don't end converting prematurely on encountering consecutive NULs.
...
Don't stop converting subsequent chunks just because the length of one of them
was 0: this can happen if the first character of a string is a NUL or if there
are two (or more) NULs in it later.
Simply remove the check for this and continue as usual even in this case.
Also add a unit test verifying that we do translate NULs in input into NULs in
output.
Closes #16620 .
(this is a backport of f99ff49 from master)
2015-06-08 14:06:23 +04:00
..
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2014-07-13 14:27:29 +00:00
2013-07-26 16:02:46 +00:00
2014-10-11 15:48:22 +00:00
2014-02-20 00:31:49 +00:00
2013-07-26 16:02:46 +00:00
2015-04-12 19:41:41 +02:00
2015-02-26 00:54:59 +01:00
2015-04-22 14:27:06 +02:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2015-05-31 03:51:06 +04:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2015-04-23 00:39:41 +04:00
2013-07-26 16:02:46 +00:00
2014-07-26 10:50:29 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2015-04-13 00:05:41 +02:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-08-31 17:41:16 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-08-30 23:32:37 +00:00
2015-04-13 00:13:28 +02:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2015-06-08 14:06:23 +04:00
2014-02-06 10:15:48 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2015-04-03 16:42:31 +02:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2015-04-17 13:26:20 +02:00
2015-04-17 13:26:20 +02:00
2011-09-29 13:47:38 +00:00
2004-11-22 15:12:29 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2009-06-01 11:46:36 +00:00
2014-10-11 15:48:22 +00:00
2014-07-26 01:41:30 +00:00
2014-10-06 17:33:15 +00:00
2014-07-26 01:41:30 +00:00
2014-10-06 17:33:15 +00:00
2013-07-26 16:02:46 +00:00
2009-01-15 13:33:51 +00:00
2014-10-06 17:33:15 +00:00
2013-09-11 01:46:08 +00:00
2009-04-24 10:36:24 +00:00
2014-07-26 01:41:30 +00:00
2013-09-11 01:46:08 +00:00
2009-04-24 10:36:24 +00:00
2014-07-26 01:41:30 +00:00
2014-06-24 23:52:39 +00:00
2009-04-24 10:36:24 +00:00
2014-07-26 01:41:30 +00:00
2014-06-24 23:52:39 +00:00
2014-07-26 01:41:30 +00:00
2015-04-12 18:50:21 +02:00
2015-04-22 17:05:35 +04:00
2013-07-26 16:02:46 +00:00
2004-04-30 20:26:14 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-26 16:02:46 +00:00
2013-07-15 01:31:47 +00:00