https://bugs.documentfoundation.org/show_bug.cgi?id=167660

            Bug ID: 167660
           Summary: RTF export: Unicode is output unsigned
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: filter:rtf
          Severity: normal
          Priority: medium
         Component: filters and storage
          Assignee: [email protected]
          Reporter: [email protected]

Rich Text Format (RTF) Specification, Version 1.9.1, "Unicode RTF" ( original
location https://www.microsoft.com/en-us/download/details.aspx?id=10725 )
explains, that the in \uN, N should be signed 16-bit value. However, we output
it unsigned.

To test:

* Create a new text document;
* Put there a character from a range U+8000-U+FFFF; e.g., Liberation Sans has
U+FB02 LATIN SMALL LIGATURE FL "fl";
* Export to RTF;
* Check the resulting RTF in a text editor.

Expected: \u-1278
Actual: \u64258

It doesn't create problems in Writer, and also doesn't seem problematic in
Word; but better be closer to what Word itself outputs (and it indeed outputs
signed 16-bit values).

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to