bugGNU Octave - Bugs: bug #33524, int2str Matlab compatibility issue

 
 

bug #33524: int2str Matlab compatibility issue

Submitted by:  Arnaud Delorme <arnodelorme>
Submitted on:  Sat 11 Jun 2011 03:25:24 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.4.0Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 14 Jul 2011 12:33:22 AM UTC, comment #3:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/c99714aeb008). Octave now returns "" for any empty input.

Rik <rik5>
Project Administrator
Mon 13 Jun 2011 03:23:59 AM UTC, comment #2:

Matlab says:

>> version


ans =

7.9.0.529 (R2009b)

>> int2str([])


ans =

''

>>

Michael Godfrey <godfrey>
Project Member
Mon 13 Jun 2011 03:20:30 AM UTC, comment #1:

What does Matlab return for int2str([])? Is it the null string ""? And is returning a null string preferable or should Octave issue a warning message about invalid input? Returning an error seems like a better way of informing the user that they are probably doing something incorrect and unexpected rather than silently returning something valid such as the empty string.

Rik <rik5>
Project Administrator
Sat 11 Jun 2011 03:25:24 PM UTC, original submission:

int2str([]) crashes under Octave

Arnaud Delorme <arnodelorme>

 

(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 godfrey (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by arnodelorme (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Jul 2011 12:33:22 AM UTCrik5StatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Thu 30 Jun 2011 04:36:19 PM UTCrik5Item GroupIncorrect Result=>Matlab Compatibility
    Mon 13 Jun 2011 03:20:30 AM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1