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

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

[Octave-bug-tracker] [bug #33330] fgets hangs octave when reading newlin


From: Rik
Subject: [Octave-bug-tracker] [bug #33330] fgets hangs octave when reading newline
Date: Mon, 29 Jul 2013 05:02:05 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

Update of bug #33330 (project octave):

                  Status:               Confirmed => Wont Fix               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #8:

Check Matlab's own documentation on this
(http://www.mathworks.com/help/matlab/import_export/import-text-data-files-with-low-level-io.html?#br4ssin).

In particular, I see:

"After each read operation, fgetl and fgets check the next character in the
file for the end-of-file marker. Therefore, these functions sometimes set the
end-of-file indicator before they return a value of -1."

and

"This behavior does not conform to the ANSI specifications for the related C
language functions"

So, I think we have to keep it.  We could restrict this only to files, rather
than sockets, if there is an easy way to tell that 



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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