[Top][All Lists]

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

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

From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #33330] fgets hangs octave when reading newline
Date: Wed, 18 May 2011 00:50:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16

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

Thanks. This will at least read the last selected value (instead of the one
before) but still hangs if the last selected value has already been read.

octave-3.2.3:26> fid = popen("zenity --scale --print-partial", "r");
## zenity scale dialog shows up
## move the  bar
octave-3.2.3:27> str = fscanf (fid, "%s", 'C')
str =27
octave-3.2.3:28> str = fscanf (fid, "%s", 'C')
## octave hangs. Does not return empty matrix
## move the bar
str = 46
## close dialog (press OK)
octave-3.2.3:29> str = fscanf (fid, "%s", 'C')
str = 46
## this is expected since the selected should be printed to the pipe again
after pressing OK

Thanks in advance


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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