https://bugs.documentfoundation.org/show_bug.cgi?id=167257
Bug ID: 167257
Summary: Certain UTF-8 chars break "Insert Text From File"
Product: LibreOffice
Version: 3.6.7.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
If a plain text file is inserted with Insert->Text From File... then the result
is horribly corrupted if it contains certain UTF-8 characters.
The one "poison" character I know of is RIGHTWARDS ARROW (U+2192), if it
appears twice (??). The several following lines are completely elided, and
the remaining text is all rendered in strikeout font. Very strange!
Steps to Reproduce:
1. Open new writer doc.
2. Insert->Text From File... and specify the attached "poison_to_lo" test
file.
Actual Results:
The input file contains (hoping this bug system supports utf!):
This is line 1. Here is a RIGHTWARDS ARROW (U+2192): → foo bar.
This is line 2. 2/42/42: Text from this line gets deleted!
This is line 3. 4/42/42: Text from this line gets deleted!
This is line 4. 4/42/42: Text from this line gets deleted!
This is line 5. → This was another RIGHTWARDS ARROW (U+2192).
This is line 6. THIS IS THE LAST LINE
The resulting LO writer document contains:
This is line 1. Here is a RIGHTWARDS ARROW (U+2192): This was another
RIGHTWARDS ARROW (U+2192).
This is line 6. THIS IS THE LAST LINE
...except all characters starting with the second "This" are in overstrike
font.
Please see attached screenshot.
Expected Results:
No corruption.
Reproducible: Always
User Profile Reset: No
Additional Info:
This occurs in latest master and all versions I have back to 3.6.7.2 (the
feature is Insert->File in early versions).
AH I JUST NOTICED: If the text file is renamed with a .txt suffix then the
problem goes away. So maybe LO is thinking the text file is something other
than plain text...?
--
You are receiving this mail because:
You are the assignee for the bug.