octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58457] [octave forge] (io) dbfread/dbfwrite f


From: Rafael Laboissiere
Subject: [Octave-bug-tracker] [bug #58457] [octave forge] (io) dbfread/dbfwrite failure on big-endian systems
Date: Thu, 28 May 2020 15:47:12 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36

Follow-up Comment #4, bug #58457 (project octave):

The dbase file (.dbf) format specification
<https://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm> indicates that 16-
and 32-bit numbers should be written with least significant byte first.

So, my patch is indeed simplistic, but it does fix the problem on s390x,
powerpc and ppc64.  The bug was revealed by a unit test in the mapping
package, which was exercised at build time of the octave-mapping Debian
packages (s390x
<https://buildd.debian.org/status/fetch.php?pkg=octave-mapping&arch=s390x&ver=1.4.0-1&stamp=1590657250&raw=0>,
powerpc
<https://buildd.debian.org/status/fetch.php?pkg=octave-mapping&arch=powerpc&ver=1.4.0-2&stamp=1590683314&raw=0>,
and ppc64
<https://buildd.debian.org/status/fetch.php?pkg=octave-mapping&arch=ppc64&ver=1.4.0-1&stamp=1587339352&raw=0>,
respectively). The build is now working for the three architectures (s390x
<https://buildd.debian.org/status/fetch.php?pkg=octave-mapping&arch=s390x&ver=1.4.0-2&stamp=1590681588&raw=0>,
powerpc
<https://buildd.debian.org/status/fetch.php?pkg=octave-mapping&arch=powerpc&ver=1.4.0-2&stamp=1590683314&raw=0>,
and ppc64
<https://buildd.debian.org/status/fetch.php?pkg=octave-mapping&arch=ppc64&ver=1.4.0-2&stamp=1590682980&raw=0>,
respectively).

As regards the need for a similar fix in line 267 of dbfread.m, I really do
not know. It seems that only 8-bit chars are read from .dbt files, so I would
say that there is no need for a fix here.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58457>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]