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

            Bug ID: 148413
           Summary: Non-ASCII image names are encoded wrong when saved as
                    HTML
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: mikekagan...@hotmail.com

1. Insert an image into a new text document.
2. In the image properties, set image name to anything non-ASCII, e.g. to a
single Cyrillic character ш.
3. Save the document as "HTML Document (Writer)".
4. Re-open the document, save, and close.

At each new save, the length of the image's 'name' attribute will double,
consisting of garbage that is not a proper UTF-8 encoding of the original
Cyrillic character, and the name itself becomes broken. Very soon, the length
of the image name starts dominating, and the size of the HTML will become tens
of megabytes, then gigabytes.

The problem is likely specific to systems where system encoding is *not* UTF-8
(mainly Windows).

Tested with Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc:

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

Reply via email to