bugGNU Octave - Bugs: bug #49656, xlswrite error, due to...

 
 

bug #49656: xlswrite error, due to uninitialized r_extnd

Submitter:  None
Submitted:  Sun 20 Nov 2016 10:56:46 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  philipnienhuis
Originator Name:  Anthony Senise Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * other
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 28 Nov 2016 09:42:34 PM UTC, comment #3: 

Pushed the fix here:
http://hg.code.sf.net/p/octave/io/rev/05ccd8106966

Closing report.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 21 Nov 2016 10:17:02 PM UTC, comment #2: 

Yep sorry for the oversight.

Just replace L.128 with:

  rstatus = r_extnd = 0;


I'm away from my dev box this week, next weekend I 'll push this fix.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 21 Nov 2016 02:56:35 PM UTC, comment #1: 

The problem is with changeset http://hg.code.sf.net/p/octave/io/rev/595b04737601.

The new lines:


  if (isempty (crange) || r_extnd)
    if (r_extnd)
      tlcl = crange;
    else
     tlcl = "A1";
  endif


r_extnd is used but it defined only if nargin >= 4

Package maintainer added.

Avinoam Kalma <avinoam>
Group Member
Sun 20 Nov 2016 10:56:46 PM UTC, original submission:  

After downloading the latest "io" package, I got the following:

error: 'r_extnd' undefined near line 171 column 27
error: called from
    xlswrite at line 171 column 3
    test at line 29 column 1

I was able to get it working by defining "r_extnd = 0;" at the beginning of "xlswrite.m". See attached "xlswrite.txt".

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #39036:  test.xlsx added by None (132KiB - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - Attached are the test driver, input data, and proposed solution)
file #39034:  test.m added by None (454B - application/vnd.wolfram.mathematica.package - Attached are the test driver, input data, and proposed solution)
file #39035:  xlswrite.txt added by None (9KiB - text/plain - Attached are the test driver, input data, and proposed solution)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by avinoam
  • -email is unavailable- added by None (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 15 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-28 philipnienhuis Item GroupNone Incorrect Result
        StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-11-23 rik5 CategoryOctave Function Octave Package
    2016-11-21 philipnienhuis CategoryOctave Package Octave Function
        Operating SystemGNU/Linux Any
    2016-11-21 avinoam StatusNone Confirmed
        Assigned toNone philipnienhuis
        Release4.0.2 other
        Carbon-Copy- Added -email is unavailable-
    2016-11-21 rik5 Carbon-CopyRemoved 72865 -
    2016-11-21 rik5 CategoryNone Octave Package
    2016-11-20 None Attached File- Added xlswrite.txt, #39035
        Attached File- Added test.xlsx, #39036
    2016-11-20 None Attached File- Added test.m, #39034

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code