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

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

[Octave-bug-tracker] [bug #57596] Should the "len" argument of "fgetl" a


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #57596] Should the "len" argument of "fgetl" and "fgets" mean bytes or characters?
Date: Wed, 6 May 2020 05:02:19 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:75.0) Gecko/20100101 Firefox/75.0

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

I find Nicholas' Matlab-compatibility argument pretty compelling.

Also, I can't think of an actual use case where one might be doing
character/text-oriented reading from a stream on a file handle, but would want
to specify a number of bytes read instead of number of characters returned.
Maybe if you're trying to optimize the buffering and paging behavior of
reading from a file? But that's crazy low-level C stuff; surely not something
that Octave should be concerned about, right? If that was the case, you'd
provided a lower-level non-buffered I/O API, right?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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