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) dfbread/dbfwrite f


From: Rafael Laboissiere
Subject: [Octave-bug-tracker] [bug #58457] [octave forge] (io) dfbread/dbfwrite failure on big-endian systems
Date: Wed, 27 May 2020 17:26:33 -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

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

                 Summary: [octave forge] (io) dfbread/dbfwrite failure on
big-endian systems
                 Project: GNU Octave
            Submitted by: rlaboiss
            Submitted on: Wed 27 May 2020 09:26:32 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: other
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

Functions dbfread/dbfwrite of the io package fail on big-endian system (in
Debian: s390x, powerpc, ppc64). The following code works fine on little-endian
systems:


f = tempname ();
c = cell (2,1);
c {1, 1} = "a";
c {2, 1} = 1;
dbfwrite (f, c);
x = dbfread (f);


but fails on a 390x system, with the following error message:


error: fdesc(11): out of bound 0
error: called from
    dbfread at line 212 column 25


The bytes in the file are not written/read in the right order on big-endian
machines.




    _______________________________________________________

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]