Bug 96098 - Unable to load rtf files with .doc extension
Summary: Unable to load rtf files with .doc extension
Status: RESOLVED DUPLICATE of bug 78731
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2015-11-27 08:48 UTC by Fabio Bas
Modified: 2015-12-03 16:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

test file (5.06 KB, application/rtf)
2015-11-27 12:05 UTC, Fabio Bas

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Bas 2015-11-27 08:48:59 UTC
In the old word (pre-2007) days, both ".rtf" and ".doc" extensions were commonly to save rich-text-format files. When loading the file, just looking if the first bytes of the file matches "{\rtf" is enough to decide the correct import filter.
This used to work in openoffice and libreoffice up to 4.4, but it's not working anymore in libreoffice 5.
When loading a rich-text-format file with .doc extension in libreoffice 5, the file is loaded as a plain-text file (i suppose the "doc/msole2" import filter fails and fallbacks to plaintext ), so the user sees the rtf source code instead of the correctly formatted rich text document.
Comment 1 Cor Nouws 2015-11-27 10:05:25 UTC
Hi Fabio Bas,

thanks for the report, but I do not see that problem in and 5.1 daily on 32 bits Ubuntu.
I do File open, select the file and there it is..

Do you have a sample document for us?

ciao - Cor
Comment 2 Fabio Bas 2015-11-27 12:05:22 UTC
(In reply to Cor Nouws from comment #1)
Hi Cor, and thank you for the quick reply.
It seems that it doesn't happen on all the files, but only on some of them.
I investigated a bit further on this issue and it seems to be caused by the file containing non-escaped characters outside the 7bit ascii.
Such a character is "°" (ordinal indicator).
Attached is a test file that opens fine on openoffice 4.1.2 (sorry, i had a presentation this morning and had to switch to ooo), and doesn't open correctly on libreffice.
Since the problem is really different from the one initially reported, should i just open a different bug and let this be closed?
Comment 3 Fabio Bas 2015-11-27 12:05:57 UTC
Created attachment 120838 [details]
test file
Comment 4 Maxim Monastirsky 2015-11-27 12:41:30 UTC
(In reply to Fabio Bas from comment #2)
> Since the problem is really different from the one initially reported,
> should i just open a different bug and let this be closed?
No need to open additional bugs. It's a known problem, with no solution currently. It affects other formats as well, not just rtf.

*** This bug has been marked as a duplicate of bug 78731 ***