bugGNU Octave - Bugs: bug #34962, The 'computer' function is not...

 
 

bug #34962: The 'computer' function is not Matlab compatible

Submitter:  Joaquim Luis <jluis>
Submitted:  Thu 01 Dec 2011 01:22:37 PM UTC
   
 
Category:  Interpreter Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Wont Fix Assigned to:  None
Originator Name:  Joaquim Luis Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 05 Jun 2015 03:09:33 AM UTC, comment #3: 

I think this is safe to close as won't fix and not a true compatibility bug. No one has stepped up to "fix" this, no updates in over 3 years. The text returned by the computer function is informational at best. If we did try to be completely Matlab-compatible with the returned strings, what should we return for 32-bit Linux? 64-bit FreeBSD?

If your use case requires the return value to be exactly what Matlab returns, it's easy enough to write your own computer.m function file that returns the value you want based on ispc, isunix, etc.

Mike Miller <mtmiller>
Group Member
Mon 12 Dec 2011 09:50:05 PM UTC, comment #2: 

According to
http://www.gnu.org/software/octave/FAQ.html#MATLAB-compatibility

"There are still a number of differences between Octave and Matlab, however in general differences between the two are considered as bugs."

It seams an issue to me. I noticed the different behavior while using a ML derived code. Though it's not an issue to me since I can replace the 'computer' call by 'ismac' or 'ispc' I felt that I should report this case.

Joaquim Luis <jluis>
Sat 03 Dec 2011 03:00:53 AM UTC, comment #1: 

I don't think this is a compatibility issue.

Octave runs on many more OS's than Matlab, and can be built to run on Window's natively,  on mingw, or Cygwin.

Are you using "computer()" for a specific purpose?




Ben Abbott <bpabbott>
Group Member
Thu 01 Dec 2011 01:22:37 PM UTC, original submission:  

Hi,

On Windows the command 'computer' prints

octave-qt.exe:1> c = computer
c = i686-pc-mingw32

on ML

c = computer

c = PCWIN

Joaquim Luis <jluis>

 

(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 mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by jluis (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-05 mtmiller StatusNone Wont Fix
        Open/ClosedOpen Closed
    2012-04-06 rik5 Severity3 - Normal 2 - Minor
    2011-12-03 bpabbott CategoryNone Interpreter
        Item GroupNone Matlab Compatibility

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code