bugGNU Octave - Bugs: bug #49753, display.m fails to display certain...

 
 

bug #49753: display.m fails to display certain strings and structures

Submitter:  Julien Bect <jbect>
Submitted:  Fri 02 Dec 2016 03:25:04 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 09 Dec 2016 08:05:40 PM UTC, comment #4: 

@Julien: More work and discussion on this issue is ongoing at bug #49794 (https://savannah.gnu.org/bugs/?49794).  I'll copy your comment #3 over there, and you can join the CC list on that bug.

Rik <rik5>
Group administrator
Fri 09 Dec 2016 07:22:19 PM UTC, comment #3: 

The patch fixes the bug, alright, but the behaviour is not Matlab-compatible.  Indeed, here is what you get in Matlab (R2016a) when calling display on a object of a class that does not overload display:


>> display (x)

x =

        stk_dataframe object: 4-by-2


Should I open a separate bug report for this?

Julien Bect <jbect>
Fri 09 Dec 2016 05:33:29 PM UTC, comment #2: 

I checked in a fix on stable (http://hg.savannah.gnu.org/hgweb/octave/rev/3bc6e9a71d9e).  This will be part of the 4.2.1 bug fix release.

Rik <rik5>
Group administrator
Fri 09 Dec 2016 03:12:02 PM UTC, comment #1: 

Confirmed.  I have a fix, but I'm waiting until the results from another bug affecting display are reported so I can make a single fix.

Rik <rik5>
Group administrator
Fri 02 Dec 2016 03:25:04 PM UTC, original submission:  

display () fails to display strings, structures, cells, etc as soon as they contain the substring '<class '. For instance:


>> clear;  x.a = '<class '
x =

  scalar structure containing the fields:

    a = <class

>> display (x)
error: display: not defined for class "struct"
error: called from
    display at line 49 column 5


The problem occurs, for instance, when calling display () on a structure where at least on field contains an object:


>> cd test/classes
>> clear;  x.a = SizeTester ([1 2])
x =

  scalar structure containing the fields:

    a = <class SizeTester>

>> display (x)
error: display: not defined for class "struct"
error: called from
    display at line 49 column 5


Julien Bect <jbect>

 

(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 amro_octave
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jbect (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-09 amro_octave Carbon-Copy- Added amro_octave
    2016-12-09 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-12-09 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code