Created attachment 45722 [details] the test file please see the below file
Effect is [Reproducible] with "LibreOffice 3.3.2 – WIN7 Home Premium (64bit) German UI [OOO330m19 (Build:202 / tag 3.3.2.2)]", I can't open the sample document. Same with OOo-dev 3.4. "Ooo 3.3.0 – WIN7 Home Premium (64bit) German UI [OOO330m20 (build 9567)]" opens the document without problems, same with MS OWRD VIEWER. My suspect: It isn't a valid WORD97 document, i'm used to find "Word.Document.8" at the end of the document, what is missing in the sample document. On the other hand, WIN Explorer recognizes the document as "Microsoft WORD97-2003" @lijilin: How has the document been created? Please explain "docs with code highlight"! What OS did you test?
May be this one has the same roots like Bug 34023 - FILEOPEN: Particular WORD (97?) document can not be opened One similar effect is the remaining lock file. An other common ground is the strange document identifier "W o r d D o c u m e n t" A difference is that sample document here contains identifier "Word.Document.8" @lijilin: How has the sample document been created? @Cédric: Can you please check?
If I open the document in Word XP, and re-save it, Writer can open it just fine. @lijilin: What application created this document? Was the document created by Microsoft Word, or some 3rt party application?
The file appears to have been created in MS Works and saved as a .doc file. I see "Normal.wpt" in the document properties using MS Word 97. - MS Word 97 opens the file - OpenOffice.org 3.2.1 OOO320m19 (Build:9505) ooo-build 3.2.1.4, Ubuntu package 1:3.2.1-7ubuntu1.1 opens the file - OpenOffice.org 3.2.0 (linux) does not open the file & gives error "Read-Error. This is not a WinWord97 file." - LibreOffice 3.3.2 OOO330m19 (Build:202) tag libreoffice-3.3.2.2 does not open the file & give error "Read-Error. This is not a WinWord97 file." $ file test.doc test.doc: CDF V2 Document, corrupt: Can't expand summary_info Whereas a Word 97 document gives: $ file Word97Test.doc Word97Test.doc: CDF V2 Document, Little Endian, Os: Windows, Version 5.0, Code page: 1252, Title: This is a test document created in Microsoft Word 97 SR-1, Author: gg, Template: Normal.dot, Last Saved By: gg, Revision Number: 1, Name of Creating Application: Microsoft Word 8.0, Total Editing Time: 02:00, Create Time/Date: Sun Apr 17 21:33:00 2011, Last Saved Time/Date: Sun Apr 17 21:35:00 2011, Number of Pages: 1, Number of Words: 8, Number of Characters: 50, Security: 0 Attaching a Word 97 test file for comparison: Word97Test.doc
Created attachment 45784 [details] Word97 test file created in MS Word 97 SR-1
Both KWord (ver 2.2.2) and Abiword (ver 2.8.6) also open test.doc. And a correction: - OpenOffice.org 3.2.0 (linux) does not open the file & gives error "Read-Error. This is Should read: - OpenOffice.org 3.3.0 (linux) does not open the file & gives error "Read-Error. This is This appears to be a regression between 3.2 and 3.3 as - OpenOffice.org 3.2.1 OOO320m19 (Build:9505) ooo-build 3.2.1.4, Ubuntu package 1:3.2.1-7ubuntu1.1 is built using the former go-oo (now LibreOffice) packages and it does open the file.
Thanks for the analysis. With that, I'll hand this off to Cedric.
(In reply to comment #1) > Effect is [Reproducible] with "LibreOffice 3.3.2 – WIN7 Home Premium (64bit) > German UI [OOO330m19 (Build:202 / tag 3.3.2.2)]", I can't open the sample > document. Same with OOo-dev 3.4. > > "Ooo 3.3.0 – WIN7 Home Premium (64bit) German UI [OOO330m20 (build 9567)]" > opens the document without problems, same with MS OWRD VIEWER. > > My suspect: It isn't a valid WORD97 document, i'm used to find > "Word.Document.8" at the end of the document, what is missing in the sample > document. > On the other hand, WIN Explorer recognizes the document as > "Microsoft WORD97-2003" > > @lijilin: > How has the document been created? > Please explain "docs with code highlight"! > What OS did you test? my os are win7 Ultimate (32bit) and ubuntu 10.10 (32bit),both them can't open it.
the test file only own "public stastic void main()"
(In reply to comment #1) > Effect is [Reproducible] with "LibreOffice 3.3.2 – WIN7 Home Premium (64bit) > German UI [OOO330m19 (Build:202 / tag 3.3.2.2)]", I can't open the sample > document. Same with OOo-dev 3.4. > > "Ooo 3.3.0 – WIN7 Home Premium (64bit) German UI [OOO330m20 (build 9567)]" > opens the document without problems, same with MS OWRD VIEWER. > > My suspect: It isn't a valid WORD97 document, i'm used to find > "Word.Document.8" at the end of the document, what is missing in the sample > document. > On the other hand, WIN Explorer recognizes the document as > "Microsoft WORD97-2003" > > @lijilin: > How has the document been created? > Please explain "docs with code highlight"! > What OS did you test? you can open it by windows office 2010
Sorry,I had a mistake.The file was created by WPS(a popular office software in China),and copy some java code from Eclipse,then save it in doc format. It's so strange that it can be opened by MS Office,and only when all the colored(syntax highlight) texts are deleted,it could be opened by LibreOffice.
Currently the main problem seems to be that WPS creates improper WORD documents. Because OOo and viewer can open those documents there might be some interest to be able to do that with LibO, too?
It is fixed in 3.4RC2,thanx
Due to <https://bugs.freedesktop.org/page.cgi?id=fields.html#status> we should used FIXED only if a known fix has solved the problem; if the problem only disappeared without known reason, please use WORKSFORME.