Issue 111177 - [sw] unxsols4: cannot import ODT or Docbook file with footnote
Summary: [sw] unxsols4: cannot import ODT or Docbook file with footnote
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: DEV300m77
Hardware: Sun Solaris
: P2 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 08:47 UTC by oc
Modified: 2017-05-20 11:42 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Bugdoc (1.10 KB, text/xml)
2010-04-27 08:49 UTC, oc
no flags Details
Bugdoc (2.78 KB, text/xml)
2010-04-27 08:50 UTC, oc
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description oc 2010-04-27 08:47:52 UTC
Load attached bugdoc with the docbook filter => iO error (broken between m68 and
m71). Found in docbook_losa.bas
Comment 1 oc 2010-04-27 08:49:45 UTC
Created attachment 69138 [details]
Bugdoc
Comment 2 oc 2010-04-27 08:50:08 UTC
Created attachment 69139 [details]
Bugdoc
Comment 3 oc 2010-04-27 08:52:03 UTC
This happens only on Solaris Sparc (S10)
Comment 4 Oliver Specht 2010-04-27 09:03:36 UTC
->mst: Would you please take a look?
Comment 5 mst.ooo 2010-05-12 20:52:58 UTC
finally tracked down the problem:
sw/source/core/unocore/unoftn.cxx

compile this file with debug=t, and it works.
compile it without debug, and it breaks as described.

only happens on unxsols4, not on unxsoli4.
compiler bug?
Comment 6 mst.ooo 2010-05-14 13:03:14 UTC
unxsols4 (Sun C++ 5.9 SunOS_sparc) generates wrong code

workaround is to replace:
    , m_bIsDescriptor(0 == pFootnote)
with:
    , m_bIsDescriptor((0 == pFootnote) ? true : false)

fixed in cws sw33bf04
http://hg.services.openoffice.org/hg/cws/sw33bf04/rev/61b342b4ceae
Comment 7 mst.ooo 2010-05-14 13:19:03 UTC
the bug is a little more severe: it also affects ODF import (if the file
contains footnotes).
possibly also other formats that use the UNO API,  like e.g. DOCX.
Comment 8 mst.ooo 2010-05-25 15:09:20 UTC
just for the record:
the Sun compiler bug is now filed as CR 6954662
Comment 9 mst.ooo 2010-05-27 11:09:27 UTC
please verify
Comment 10 michael.ruess 2010-06-04 12:29:48 UTC
Verified in CWS sw33bf04.

MRU->OC: the docbook_losa.bas can be changed now.