Created attachment 79348 [details] some.rtf Attempt to open attached rtf file ends with general I/O error when opening a RTF file. This is reproducible with 4.0.2.2 as well. Reproduced on Gentoo Linux.
reproducible on LO 4.0.3.3 (Win7 Home Premium 32bit) File can be previewed from Windows Explorer
*** Bug 64656 has been marked as a duplicate of this bug. ***
The error is apparently caused by this fragment: {\upr{\company} {\*\ud\uc0{\company{\uc1} } } }
Apparently there is a problem in /pub/lobuild/libreoffice/writerfilter/source/rtftok/rtfdocumentimpl.cxx when property is added twice, first for ANSI, second for Unicode: xUserDefinedProperties->addProperty(aName, beans::PropertyAttribute::REMOVABLE, uno::makeAny(m_aStates.top().aDestinationText.makeStringAndClear()));
This worked in LO 3.4.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=bb67e709b70919efb41ec41e93dd92953dc6a003 fdo#64637 RTF import: handle multiple RTF_COMPANY The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
-4-1 review: https://gerrit.libreoffice.org/5049
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=58a285d8d504c5ae952d314238dbbaa873b51db7&h=libreoffice-4-1 fdo#64637 RTF import: handle multiple RTF_COMPANY It will be available in LibreOffice 4.1.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Migrating Whiteboard tags to Keywords: (filter:rtf) Replace rtf_filter -> filter:rtf. [NinjaEdit]