[Libreoffice] [PATCH] Preserve RTF \'00 sequences (NUL) in strings

Caolán McNamara caolanm at redhat.com
Tue Jul 19 03:11:42 PDT 2011


On Mon, 2011-07-18 at 00:32 +1000, Troy Rollo wrote:
> +                                /* \'00 is a valid internal character in  a
> +                                * string in RTF, however ByteString::Append
> +                                * does nothing if '\0' is passed in. It is
> +                                * otherwise capable of handling strings with
> +                                * embedded NULs, so add a '\1' and then
> +                                * change it, as ByteString::SetChar does not
> +                                * care if the character is '\0'.
> +                                */

Well, this'll work I guess, and I'm minded to push it, but why ;-) Is
there a concrete bug this fixes ?

C.



More information about the LibreOffice mailing list