[Libreoffice] [PUSHED] Preserve RTF \'00 sequences (NUL) in strings
Stephan Bergmann
stephan.bergmann.secondary at googlemail.com
Thu Jul 21 02:48:49 PDT 2011
On Jul 19, 2011, at 3:51 PM, Caolán McNamara wrote:
> As an aside we should check if the rtl::O[U]StringBuffer append's with a
> 0 character actually do append a 0 to the end of a already null
> terminated string so the ugliness can go away if/when the conversion
> train hits that code.
It sure looks strange that ByteString::Append(char) silently refuses to append a null character. That mis-feature should probably simply be removed. (And rtl::OStringBuffer::append(sal_Char) indeed works correctly for null characters.)
-Stephan
More information about the LibreOffice
mailing list