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

 
 

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

Submitted by:  Joaquim Luis <jluis>
Submitted on:  Thu 01 Dec 2011 01:22:37 PM UTC  
 
Category: InterpreterSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: Wont FixAssigned to: None
Originator Name: Joaquim LuisOpen/Closed: Closed
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 05 Jun 2015 03:09:33 AM UTCmtmillerStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Fri 06 Apr 2012 03:05:39 PM UTCrik5Severity3 - Normal=>2 - Minor
    Sat 03 Dec 2011 03:00:53 AM UTCbpabbottCategoryNone=>Interpreter
      Item GroupNone=>Matlab Compatibility

    Back to the top


    Powered by Savane 3.1-cleanup1