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 FunctionSeverity: 4 - Important
Priority: 7 - HighItem Group: Regression
Status: FixedAssigned to: None
Originator Name: GuillaumeOpen/Closed: Closed
Release: devOperating 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:

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Feb 2017 09:19:51 AM UTCpantxoStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 15 Feb 2017 06:07:56 PM UTCmtmillerSeverity3 - Normal=>4 - Important
      Priority5 - Normal=>7 - High
      Item GroupUnexpected Error=>Regression
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1