[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60825] [octave forge] (io) io oct2xls corrupt
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #60825] [octave forge] (io) io oct2xls corrupts content.xml |
Date: |
Sat, 24 Jul 2021 19:21:52 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
Update of bug #60825 (project octave):
Status: Need Info => Ready For Test
Release: 6.2.0 => other
_______________________________________________________
Follow-up Comment #6:
You happen to have hit a bug that must have been there from the very beginning
when .ods was implemented for the OCT interface. Remarkable that it took so
long for someone to stumble over it.
After I fixed it I hit another, known bug (that I can't find back now)
relating to ftruncate() not being implemented. That induces trailing junk
after an XML closing tag if an updated XML file (overwritten in place) happens
to be shorter than the original one. I simply have the slack padded with
spaces for the time being until ftruncate (ever) gets implemented; but TBH I
fear that provisional fix will have a long lifetime.
The combined fix is here:
http://hg.code.sf.net/p/octave/io/rev/8edff1e5d7ad
It works fine for me now with your file "guitar@data.ods" from bug #53298.
If you want to try yourself, please swap __OCT_oct2ods__.m (also attached)
in the io packages private/ subdir.
Setting status to "Ready For Test" for a while.
(file #51687)
_______________________________________________________
Additional Item Attachment:
File name: __OCT_oct2ods__.m Size:10 KB
<https://file.savannah.gnu.org/file/__OCT_oct2ods__.m?file_id=51687>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60825>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/