<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Headless conversion txt→odt→txt inserts unnecessary characters"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=120067">120067</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Headless conversion txt→odt→txt inserts unnecessary characters
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0 all versions
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zetok@openmailbox.org
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>