[Top][All Lists]

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

[Octave-bug-tracker] [bug #55648] [MXE-Octave] cannot print with gnuplot

From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #55648] [MXE-Octave] cannot print with gnuplot graphics toolkit
Date: Tue, 12 Feb 2019 14:50:43 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Update of bug #55648 (project octave):

                  Status:                    None => Patch Submitted        


Follow-up Comment #23:

The attached patch let's me print with gnuplot on Windows again.

"fclear" is necessary to reset the error state of the stream. Admittedly the
documentation of fclear isn't very clear (no pun intended). Essentially, it
calls std::io::clear() on the underlying C++ stream. This resets the eof state
of the stream and allows to read from it again.
I don't think it is necessary to read the stream char by char. I added a token
to the end of the received string instead to make sure it is completely read.

The command from comment #12 also no longer throws an error.

(file #46243)

Additional Item Attachment:

File name: bug55648_gnuplot_get_var.patch Size:1 KB


Reply to this item at:


  Message sent via Savannah

reply via email to

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