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

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

[Octave-bug-tracker] [bug #62649] fwrite function does not work properly


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #62649] fwrite function does not work properly with some value
Date: Mon, 20 Jun 2022 10:58:25 -0400 (EDT)

Update of bug #62649 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

Works for me on Windows when opening the file in binary mode:

fid = fopen("test_values", 'wb');
fwrite(fid, 2559, "uint16");
fwrite(fid, 2560, "uint16");
fwrite(fid, 2561, "uint16");
fclose(fid);


In hex viewer:
ff 09 20 0a 01 0a  

Fwiw, Matlab R2022a on Windows does the same (conversion of LF to CRLF) for
the original example.

Closing as invalid.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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