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

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

[Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file
Date: Wed, 15 Mar 2023 15:00:46 -0400 (EDT)

Follow-up Comment #1, bug #63931 (project octave):

I cannot reproduce this on Win11 codepage 437 (octave gui)

>> ver
----------------------------------------------------------------------
GNU Octave Version: 8.1.0 (hg id: 75b1efe727d4)
GNU Octave License: GNU General Public License
Operating System: MINGW32_NT-6.2 Windows 6.2  x86_64



>> clear
>> whos
>> val = hex2dec('a7');
>> a = ones(2400,1)*val;
>> f = fopen('a.a','wb');
>> fwrite(f,a,'uint8');
>> fclose(f);
>> f = fopen('a.a','rb');
>> b = fread(f,2400,'uint8');
>> fclose(f);
>> a(1)
ans = 167
>> b(1)
ans = 167
>>


Dmitri.
-- 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63931>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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