[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54111] binary data read using "fread" doesn't
From: |
Bill S |
Subject: |
[Octave-bug-tracker] [bug #54111] binary data read using "fread" doesn't recognize any "PRECISION" arg in Windows 10 |
Date: |
Wed, 13 Jun 2018 09:38:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299 |
URL:
<http://savannah.gnu.org/bugs/?54111>
Summary: binary data read using "fread" doesn't recognize any
"PRECISION" arg in Windows 10
Project: GNU Octave
Submitted by: bills
Submitted on: Wed 13 Jun 2018 01:38:25 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Bill S
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
Trying to read binary data using FREAD with PRECISION set to different
arguments produces only "double" as answers.
EXAMPLE:
fidw=fopen("test.bin","w");
fwrite(fidw,[100],"int8");
fclose(fidw);
fidr=fopen("test.bin","rb");
val=fread(fidr,1,"int8")
fclose(fidr);
whos val
Attr Name Size Bytes Class
==== ==== ==== ===== =====
val 1x1 8 double
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54111>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54111] binary data read using "fread" doesn't recognize any "PRECISION" arg in Windows 10,
Bill S <=