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

 
 

bug #50318: Error using print and the append flag

Submitted by:  Guillaume <gyom>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project Administrator
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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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 => Regression
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.5