[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file |
Date: |
Sat, 1 Apr 2023 07:59:14 -0400 (EDT) |
Update of bug #63931 (project octave):
Status: Fixed => Ready For Test
Open/Closed: Closed => Open
_______________________________________________________
Follow-up Comment #55:
I backed out that change here:
https://hg.savannah.gnu.org/hgweb/octave/rev/d1a846f57379
It is no longer required for me to avoid the issue with the example in comment
#0:
>> 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
>> __mfile_encoding__
ans = windows-1252
Backing out this change restores Matlab compatibility (transcoding is
independent on whether a file stream is opened in binary mode or text mode).
Opening as ready for test again.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63931>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file,
Markus Mützel <=
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Markus Mützel, 2023/04/01
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Dmitri A. Sergatskov, 2023/04/01
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Henk Borsje, 2023/04/01
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Dmitri A. Sergatskov, 2023/04/01
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Dmitri A. Sergatskov, 2023/04/01
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Markus Mützel, 2023/04/02
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Markus Mützel, 2023/04/02
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Markus Mützel, 2023/04/07
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Charles Praplan, 2023/04/08
- [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file, Markus Mützel, 2023/04/08