[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46417] GL2PS info: OpenGL feedback buffer ove
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #46417] GL2PS info: OpenGL feedback buffer overflow when printing |
Date: |
Sat, 02 Jan 2016 07:53:17 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #18, bug #46417 (project octave):
@ederag: I am at 21011:d9f4e4961e09 on default.
@jwe: I was looking for a way to discard previous content of the temporary
file while keeping access to the original file pointer that I had passed to
unwind_protect. You are right that fseek+ftruncate is simpler but I didn't
know of ftruncate hence the use of freopen.
I didn't know about gnulib::tmpfile either and it seams to do exactly what I
want without bothering with fclose/unlink in unwind_protect. Thanks
I attached an updated patch. You need to run "bootstrap" first as I added
gnulib::ftruncate.
I used the following for tests:
pcolor (rand (200));
## pdf terminal
print -dpdflatexstandalone try.tex
## others based on eps terminal
terms = {".png", ".jpg", ".ps", ".pdf"}
cellfun (@(s) print (["try" s]), terms)
>> The error function no longer returns so you don't need an "else" after
that
After what?
(file #35903)
_______________________________________________________
Additional Item Attachment:
File name: overflow9.patch Size:5 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46417>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46417] GL2PS info: OpenGL feedback buffer overflow when printing,
Pantxo Diribarne <=