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

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

[Octave-bug-tracker] [bug #59238] load variables from file: the next sav


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #59238] load variables from file: the next saving operation produces a faulty file
Date: Tue, 20 Oct 2020 14:26:46 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #13, bug #59238 (project octave):

I agree that we should use binary formats and that for internal purposes we
should be specifying the format rather than leaving it up to the prevailing
default.

The -text format on Windows should work, however.  We should always be opening
these files internally in Octave in binary mode and dealing with the line
endings ourselves rather than relying on text mode conversions because we need
to use ftell/fseek (or equivalent C++ stream operations) to save and restore
positions while parsing the files.  So if that is not happening correctly, it
is a bug.  If you have examples of files that can't be saved/loaded properly,
please point me to them.  I have not been following this report closely but I
would like to make -text mode work correctly if possible.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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