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

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

[Octave-bug-tracker] [bug #47741] The scanf family of functions cannot p


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #47741] The scanf family of functions cannot parse 64bit hex numbers on Windows and 32bit Linux
Date: Thu, 21 Apr 2016 23:22:49 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #5, bug #47741 (project octave):

I've got a partial solution for the main issue in this bug report, see
attached.

Do we want to make %h[dioux] mean exactly a 16-bit integer as Markus
recommended in the original post? If we have to make "l" mean a 64-bit integer
for Matlab compatibility, then I kind of like Markus' idea of making the "h"
modifier mean exactly 16-bit and no modifier exactly 32-bit for symmetry.

There are other related issues that should probably be reported separately,
such as scanf should return an array of type int64/uint64 if the only
conversion is %l[dioux]. And that Matlab returns a saturated integer when the
number read is out of range, while Octave aborts conversion at that point.

(file #36977)
    _______________________________________________________

Additional Item Attachment:

File name: bug47741.diff                  Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47741>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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