bugGNU Octave - Bugs: bug #50318, Error using print and the append...

 
 

bug #50318: Error using print and the append flag

Submitter:  Guillaume <gyom>
Submitted:  Wed 15 Feb 2017 05:40:36 PM UTC
   
 
Category:  Octave Function Severity:  4 - Important
Priority:  7 - High Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 16 Feb 2017 09:19:51 AM UTC, comment #2: 

Good catch Mike. I didn't know of this option and I am responsible for the regression. I pushed a fix:

http://hg.savannah.gnu.org/hgweb/octave/rev/0c9195baea1a

Closing report.

Pantxo Diribarne <pantxo>
Group Member
Wed 15 Feb 2017 06:07:56 PM UTC, comment #1: 

Confirmed. It looks like a change was made on the stable branch to fix bug #49779:

https://hg.savannah.gnu.org/hgweb/octave/rev/46b914a213db

This change first attempts to open the output file for writing, which truncates the output, and then deletes it. This breaks the -append option, which works fine for me in version 4.2. Marking as a regression and raising priority, this should be fixed on the stable branch before the next point release.

Mike Miller <mtmiller>
Group Member
Wed 15 Feb 2017 05:40:36 PM UTC, original submission:  

The "-append" flag does not seem to work correctly when printing:


>> h = figure;plot(rand(5));
>> file = [tempname '.ps'];
>> print(h,file,'-dpsc2','-append')
>> print(h,file,'-dpsc2','-append')
error: copyfile: no files to move
error: called from
    copyfile at line 85 column 5
    print at line 349 column 5
>> print(h,file,'-dpsc2','-append')


With Matlab, the output would be a file with two identical pages. The behavior is that the file is created if it does not exist and a new page is added to the existing file otherwise.

Guillaume <gyom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-16 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2017-02-15 mtmiller Severity3 - Normal 4 - Important
        Priority5 - Normal 7 - High
        Item GroupUnexpected Error or Warning Regression
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code