[Libreoffice-bugs] [Bug 120067] New: Headless conversion txt→odt→txt inserts unnecessary characters

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 22 18:56:39 UTC 2018


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

            Bug ID: 120067
           Summary: Headless conversion txt→odt→txt inserts unnecessary
                    characters
           Product: LibreOffice
           Version: 5.0 all versions
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: zetok at openmailbox.org

Description:
When converting formats txt→odt→txt LO inserts unnecessary characters at the
beginning of the resulting text.

It shouldn't insert any characters by itself, and instead it should preserve
text bytes just as they are.

Steps to Reproduce:
1.

```
echo 'foobar' > text.txt
libreoffice --convert-to odt text.txt
mv text.txt{,.orig}
libreoffice --convert-to txt text.odt
```

Actual Results:
$ sha256sum text.txt{,.orig}
a2969248c7632f26c29e6d46a177f1f63334202d1d6170928e2e737d2b0f7c29  text.txt
aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f  text.txt.orig

$ hexdump -C text.txt.orig
00000000  66 6f 6f 62 61 72 0a                              |foobar.|
00000007

$ hexdump -C text.txt
00000000  ef bb bf 66 6f 6f 62 61  72 0a                    |...foobar.|
0000000a

Expected Results:
sha256 of both original and conversion output should be the same.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 6.1.0.3
Build ID: 10(Build:3)
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk2; 
Locale: en-GB (en_GB.UTF-8); Calc: group threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180922/4b3c1210/attachment.html>


More information about the Libreoffice-bugs mailing list