Bug 96730 - File gets corrupted DOXC Georgian language
Summary: File gets corrupted DOXC Georgian language
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-26 17:44 UTC by Levan
Modified: 2015-12-28 02:02 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
test file (366 bytes, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-12-26 17:44 UTC, Levan
Details
Sample after add web text. (4.46 KB, application/zip)
2015-12-27 01:32 UTC, m_a_riosv
Details
Befor, after saving (358.25 KB, image/jpeg)
2015-12-27 14:34 UTC, Levan
Details
origina and edited files (10.11 KB, application/zip)
2015-12-27 19:54 UTC, Levan
Details
Sample edited with ms word plus edited with LibreOffice (9.95 KB, application/zip)
2015-12-27 22:08 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Levan 2015-12-26 17:44:53 UTC
Created attachment 121558 [details]
test  file

When you create a .doxc file in windows and copy Georgian text from internet to this file, it thinks that the Text is in Times New Roman and not in unicode sylfaen most probably.

After saving this file and then re opening it the file gets corrupted, see the attached file.
Comment 1 Levan 2015-12-26 17:52:57 UTC
To test I copped text from this page, well situations cause this problem as well but this text did the trick as well
http://maiadiakonidze.blogspot.com/2015/12/blog-post_19.html
Comment 2 m_a_riosv 2015-12-26 18:12:32 UTC
Hi Levan, thanks for reporting.

For save in txt type you can choose to "Sava as" "Text - Choose encoding (.txt) /^.txt)", you need to select it every time you save the file

I think this this a duplicate, please if you are not agree reopen it.

*** This bug has been marked as a duplicate of bug 38902 ***
Comment 3 Levan 2015-12-26 19:24:31 UTC
(In reply to m.a.riosv from comment #2)
> Hi Levan, thanks for reporting.
> 
> For save in txt type you can choose to "Sava as" "Text - Choose encoding
> (.txt) /^.txt)", you need to select it every time you save the file
> 
> I think this this a duplicate, please if you are not agree reopen it.
> 
> *** This bug has been marked as a duplicate of bug 38902 ***

I honestly don't understand You want me to save in other file type ?? If yes then If i save it in doc format then it does not corrupt the text
Comment 4 m_a_riosv 2015-12-27 01:32:37 UTC
Created attachment 121561 [details]
Sample after add web text.

Sorry @Levan, a mistake from my side, on first save the file.

Adding the text from the web you point, saving as docx, the text is properly there, I think.

Win10x64
Version: 5.0.4.2 (x64) Build ID: 2b9802c1994aa0b7dc6079e128979269cf95bc78
Comment 5 Urmas 2015-12-27 08:47:12 UTC
What browser do you use?
Comment 6 m_a_riosv 2015-12-27 12:17:27 UTC
FF
Comment 7 Levan 2015-12-27 14:34:34 UTC
Created attachment 121567 [details]
Befor, after saving

This is before saving on the left.

After saving and re opening the file on the right
Comment 8 Levan 2015-12-27 14:41:09 UTC
(In reply to m.a.riosv from comment #4)
> Created attachment 121561 [details]
> Sample after add web text.
> 
> Sorry @Levan, a mistake from my side, on first save the file.
> 
> Adding the text from the web you point, saving as docx, the text is properly
> there, I think.
> 
> Win10x64
> Version: 5.0.4.2 (x64) Build ID: 2b9802c1994aa0b7dc6079e128979269cf95bc78

Ok I tested few thing and this is what is going on, first I thought that it was because of the compatibility (MS office 2013 is installed on system)

So first I created a docx file with word 2013 and saved the text, well it worked.

Ok then I created the docx file with Word, then pasted the text with LibreOffice and saved it. well it worked.

Now I decided to create a file with libreoffice and created and saved the file, it worked.

Finally i created a docx file from windows Context menu and edited this file with libreoffice and it corrupted the file.
Comment 9 m_a_riosv 2015-12-27 15:56:02 UTC
> Finally i created a docx file from windows Context menu and edited this file
> with libreoffice and it corrupted the file.
Are you sure it is a docx file not a plain text file with docx extension?
Comment 10 Levan 2015-12-27 19:54:11 UTC
Created attachment 121571 [details]
origina and edited files

This zip contains orignal unedited docx file and file that has been edited with ms word 2013 and libreoffice. The word file works
Comment 11 Levan 2015-12-27 19:56:59 UTC
(In reply to m.a.riosv from comment #9)
> > Finally i created a docx file from windows Context menu and edited this file
> > with libreoffice and it corrupted the file.
> Are you sure it is a docx file not a plain text file with docx extension?

I honestly do not know but all I know is that docx file that has been edited with word works, I attached an unedited version as well here attachment 121571 [details]
Comment 12 m_a_riosv 2015-12-27 22:08:44 UTC
Created attachment 121574 [details]
Sample edited with ms word plus edited with LibreOffice

Your file edited with ms word.
Open with LibreOffice.
Added text from your linked web.
Saved with LibreOffice.

I can't see the issue.
Comment 13 Levan 2015-12-28 00:19:44 UTC
(In reply to m.a.riosv from comment #12)
> Created attachment 121574 [details]
> Sample edited with ms word plus edited with LibreOffice
> 
> Your file edited with ms word.
> Open with LibreOffice.
> Added text from your linked web.
> Saved with LibreOffice.
> 
> I can't see the issue.

Are you using Windows ? because I managed to reproduce it on 2 different windows 8.1 machines, however I could not reproduce it on ubuntu.

On the second windows machine when I created a new docx file from windows Context menu and then opened it and saved it with libreoffice, libreoffice asked me if I wanted to use Text format or open document format so I clicked text and it got corrupted.
Comment 14 m_a_riosv 2015-12-28 00:33:57 UTC
Following comment#9, your file in comment#10 "original.docx" it's an empty file, but not a docx empty file, this why LibreOffice ask about the format to save, for LibreOffice only the extension doesn't identify the file type.

Use "Save as" and select docx type.

Seems not a LibreOffice bug, but how it is generated in the system.
Comment 15 Levan 2015-12-28 01:03:20 UTC
(In reply to m.a.riosv from comment #14)
> Following comment#9, your file in comment#10 "original.docx" it's an empty
> file, but not a docx empty file, this why LibreOffice ask about the format
> to save, for LibreOffice only the extension doesn't identify the file type.
> 
> Use "Save as" and select docx type.
> 
> Seems not a LibreOffice bug, but how it is generated in the system.

Well I understand now that it's using simple text format but it is very easy to make my original mistake, Well I believe a lot of people disable save dialog that states notify me when not saving in odf format. So most of us press not to use odf and never notify me again. So in this case unlike MS word it saved this file in text format. 

Yes, i understand what happened now but does not change the fact it is very easy to make this mistake and I managed to loose important work at least twice, this way.
Comment 16 m_a_riosv 2015-12-28 01:34:38 UTC
I think translate the problem doesn't solve it, doing properly the first step avoid nested issues.

First if you really need to work with docx files, use the option in Menu/Tools/Options/Load and save, to use this file type as default.

The best way is to use ODF formats, and if you need to share the file at same time, save a docx copy with Menu/File/Save a copy.

Putting a link to a template file on your desktop can be an easy way to create new files in the format you like.
Comment 17 Levan 2015-12-28 02:02:41 UTC
(In reply to m.a.riosv from comment #16)
> I think translate the problem doesn't solve it, doing properly the first
> step avoid nested issues.
> 
> First if you really need to work with docx files, use the option in
> Menu/Tools/Options/Load and save, to use this file type as default.
> 
> The best way is to use ODF formats, and if you need to share the file at
> same time, save a docx copy with Menu/File/Save a copy.
> 
> Putting a link to a template file on your desktop can be an easy way to
> create new files in the format you like.

Well I would call this workaround.

Sure I honestly know that I am wasting your time and this is my last comment because I understand I abusing your kindness.

Well why not default to docx format in such a situation (just like MS word) and not use text. Or if there is an issue with that why not add an additional conformation step in such situation, like notepad does: Tells you that your text will not be properly saved in plain text format so change it.

Now when I will be using libreoffice I will create files from it's menu but in a way it is like if I tell you not to use close minimize maximize buttons and do it from the menu bar