bugGNU Octave - Bugs: bug #45601, error: invalid suffix...

 
 

bug #45601: error: invalid suffix './report/output/rg-beta' when using relative path in `print` and no file extension

Submitter:  None
Submitted:  Wed 22 Jul 2015 09:29:22 AM UTC
   
 
Category:  Plotting Severity:  2 - Minor
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 14 Aug 2015 09:28:51 PM UTC, comment #2: 

This was pretty easy as it was all m-file work.  I fixed it on the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/ab2c5e84954a).

Rik <rik5>
Group administrator
Wed 22 Jul 2015 02:00:51 PM UTC, comment #1: 

Thanks for your bug report. Confirmed here, the scripts attempt to determine if the file argument has a file extension by searching for the last ".", which breaks in this case.

This is a pretty minor issue with an easy workaround, simply add a valid file extension to the name, ".tex" for the case of "pdflatex", and there is no error.

This probably needs to be fixed in the gnuplot scripts as well.

Mike Miller <mtmiller>
Group Member
Wed 22 Jul 2015 09:29:22 AM UTC, original submission:  

I got this error when trying the print command with relative path


    error: invalid suffix './report/output/rg-beta' for device  'pdflatex'


The specified command:

    print('../report/output/rg-beta','-dpdflatex');


Expected result: Data written to the specified file

Anonymous

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  •  

    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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-08-14 rik5 Open/ClosedOpen Closed
    2015-07-22 mtmiller CategoryPlotting with OpenGL Plotting
        Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupOther Incorrect Result
        StatusNone Confirmed
        Release3.8.1 dev
        Operating SystemGNU/Linux Any
        Summaryerror: invalid suffix \'./report/output/rg-beta\' for device \'pdflatex\' when using relative path in `print` error: invalid suffix './report/output/rg-beta' when using relative path in `print` and no file extension

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code