octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45687] fread does not allow different ARCH wh


From: Rik
Subject: [Octave-bug-tracker] [bug #45687] fread does not allow different ARCH when file fopen'd with ARCH
Date: Mon, 10 Aug 2015 03:20:43 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)

Follow-up Comment #7, bug #45687 (project octave):

I changed the documentation on the stable branch to explain the one-letter
shortcut codes (http://hg.savannah.gnu.org/hgweb/octave/rev/f02c22f71cdb).

There was a problem in the C++ code that called a non-existent function name
which happened to be an enum.  It was sort of miraculous that the compiler
didn't flag it as an error.  I fixed that on the default branch here
(http://hg.savannah.gnu.org/hgweb/octave/rev/a76e20f2f156).  Octave now runs
through to completion for each of the different combinations.  Still, it would
be useful to see what the actual value is that should be returned.  Could the
original reporter run the newly attached rpt_arch_combinations.m and report
the results.  Running it in Octave I get the following.


fopen ARCH nothing | fread ARCH nothing => OK
fopen ARCH ieee-le | fread ARCH nothing => ans =    2.1787e+05
fopen ARCH ieee-be | fread ARCH nothing => ans =   2.7444e-307
fopen ARCH       b | fread ARCH nothing => ans =   2.7444e-307
fopen ARCH nothing | fread ARCH  native => ans =    2.1787e+05
fopen ARCH ieee-le | fread ARCH  native => ans =    2.1787e+05
fopen ARCH ieee-be | fread ARCH  native => ans =    2.1787e+05
fopen ARCH       b | fread ARCH  native => ans =    2.1787e+05
fopen ARCH nothing | fread ARCH ieee-be => ans =   2.7444e-307
fopen ARCH ieee-le | fread ARCH ieee-be => ans =   2.7444e-307
fopen ARCH ieee-be | fread ARCH ieee-be => ans =   2.7444e-307
fopen ARCH       b | fread ARCH ieee-be => ans =   2.7444e-307
fopen ARCH nothing | fread ARCH ieee-le => ans =    2.1787e+05
fopen ARCH ieee-le | fread ARCH ieee-le => ans =    2.1787e+05
fopen ARCH ieee-be | fread ARCH ieee-le => ans =    2.1787e+05
fopen ARCH       b | fread ARCH ieee-le => ans =    2.1787e+05




(file #34619)
    _______________________________________________________

Additional Item Attachment:

File name: rpt_arch_combinations.m        Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45687>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]