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: Mon, 20 Mar 2023 14:31:50 -0400 (EDT)

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

The bug is when you change interpreter encoding from utf-9 to something else
e.g. latin1 aka iso-8859-1:


$ octave -qf
octave:1> t1
val = 193
cw = 1
cr1 = 1
x = 193
y = 193
------
val = 194
cw = 1
cr1 = 1
x = 194
y = 194
------
val = 195
cw = 1
cr1 = 1
x = 195
y = 195
------
octave:2> __mfile_encoding__ ("latin1")
octave:3> t1
val = 193
cw = 1
cr1 = 1
x = 193
y = 63
------
val = 194
cw = 1
cr1 = 0
x = 194
error: b(1): out of bound 0 (dimensions are 0x0)
error: called from
    t1 at line 15 column 5
octave:4> 


Not sure wht Matlab's equivalent would be.

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]