Re: [Libreoffice] embedded nulls in SvStream::ReadLine

2012-01-16 Thread Eike Rathke
Hi Caolán, On Monday, 2012-01-16 10:45:40 +, Caolán McNamara wrote: > caolanm->erack:, from" erAck 26.02.01: Old behavior was no special > treatment of '\0'..." I presume you noticed this weirdness ages ago as > well in converting it from += to Append. What do you think, worth > syncing ReadL

[Libreoffice] embedded nulls in SvStream::ReadLine

2012-01-16 Thread Caolán McNamara
In tools/qa/cppunit/test_stream.cxx:Test I added test_readline and after poking around adding some edge-cases I see that Stream::ReadLine has the odd quirk that it ignores embedded nulls in lines it reads, i.e. foo\0bar\n is read as "foobar", not "foo\0bar" or even "foo". That seems kind of odd to