[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62649] fwrite function does not work properly
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #62649] fwrite function does not work properly with some value |
Date: |
Fri, 17 Jun 2022 23:09:42 -0400 (EDT) |
Follow-up Comment #1, bug #62649 (project octave):
Why are you opening the file in text mode?
What you want to write is:
od -c test_values
0000000 377 \t \0 \n 001 \n
0000006
but in the text mode (On Windows) every linefeed (\n) will get
carrige return \r added. So you are getting:
od -c test_values
0000000 377 \t \0 \r \n 001 \r \n
0000010
Dmitri.
--
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62649>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/