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

2011-07-19 Thread Caolán McNamara
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 +

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

2011-07-19 Thread Troy Rollo
On Tuesday 19 July 2011, Caolán McNamara wrote: Well, this'll work I guess, and I'm minded to push it, but why ;-) Is there a concrete bug this fixes ? Yes, but it is a little obscure. If you take the attached ODT file, save it as an RTF, and then load the RTF, the prefix to the paragraph

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

2011-07-17 Thread Troy Rollo
--- svtools/source/svrtf/parrtf.cxx | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index 0b722d8..0c60834 100644 --- a/svtools/source/svrtf/parrtf.cxx +++