Bug 50592

Summary: RTF: Saving as RTF corrupting non-Latin and non-Cyrillic text, adding brackets here and there
Product: LibreOffice Reporter: Seda Stamboltsyan <lil-yan>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: alexpikptz
Priority: medium    
Version: 3.5.4 release   
Hardware: Other   
OS: All   
Whiteboard: BSA (target:4.2.5)
Crash report or crash signature: Regression By:
Attachments: An RTF file with corrupted Armenian text
File which I created from your rtf file.

Description Seda Stamboltsyan 2012-06-01 08:27:04 UTC
Created attachment 62381 [details]
An RTF file with corrupted Armenian text

Problem description: When saving the document in RTF format, then opening it, the non-Latin and non-Cyrillic text (Armenian in my case) is corrupted. Additional brackets are added to the text here and there. Moreover, the number of added brackets increases each time when a new saving of the same document is done.

This doesn't happen when the text is in English or Russian, for example. 

There wasn't such a problem in LibreOffice until recently. But the last two versions have this bug.

Steps to reproduce:
1. ....
2. ....
3. ....

Current behavior:

Expected behavior:

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Comment 1 s-joyemusequna 2012-06-01 11:25:07 UTC
Created attachment 62392 [details]
File which I created from your rtf file.

I created an ODT file from your rtf file and removed the brackets. Then I saved the file as rtf with LibO 3.4.5, LibO 3.5.4, and LOdev 3.6 (master - 01-Jun-2012 05h15 x86@6-fast; Build ID: 76f63f4). It works for me (no brackets). Tested unter Windows Vista 64 and Windows XP.

Could you send the odt file which you used?

(I attach the file I created from your rtf file.)
Comment 2 Seda Stamboltsyan 2012-06-01 11:54:44 UTC
I downloaded your file and saved as rtf, it was OK. Then I made some changes to that same rtf file, then saved. Next time I opened the file, it was again corrupted.

So, this problem will not occur, if you don't make changes in the rtf file. Please, save your file in the rtf format, then open it and delete (or add) some letters in the Armenian section of the text (that is, make some changes to the text) and save the file, again in the rtf format. Then open it. See if brackets are added as in my case.

My operating system is Windows 7, if this can help.

***"Could you send the odt file which you used?"***

Sorry, I don't have it, as my first save of the file was as rtf.
Comment 3 s-joyemusequna 2012-06-01 23:19:55 UTC
Sorry, but I can't trigger the error. I seems to work for me. I have deleted characters, moved Armenian text around with cut and paste, and inserted Armenian characters  with Insert/Special characters... I have tried about ten times, the resulting file was OK every time.

It could be Windows 7 specific, some sort of font issue.
Comment 4 Seda Stamboltsyan 2012-06-02 04:11:27 UTC
Thanks for your efforts.

Note, however, that my old OpenOffice which I'm still keeping in the computer and the Microsoft Word program DON'T have this issue with the same fonts and operating system. And the previous versions of LibreOffice DIDN'T have this problem either.

Then the only answer seems to be something has changed in the new versions of LibreOffice which causes this problem in my computer.

Food for thought!!!
Comment 5 Urmas 2012-06-23 08:41:30 UTC
Confirmed on Windows XP, too. Don't be such a blind idiot, please.
Comment 6 Alexandr 2014-07-14 15:01:59 UTC
Hello.
I reproduce the bug with LibreOffice 3.5.4 from Debian Wheezy. I can not reproduce it with LibreOffice 4.2.5 from Debian Wheezy backports and 4.3.0.2. 
I do not know which patch solves the problem hence I set bugstatus to RESOLVED WORKSFORME. Feel free to reopen it if you can reproduce the issue with LibreOffice 4.2.5 or later.