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: Markus Mützel
Subject: [Octave-bug-tracker] [bug #63931] Binary fwrite writes incorrect data to file
Date: Mon, 20 Mar 2023 11:56:03 -0400 (EDT)

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


> Also, I am not sure that setting __mfile_encoding__ in the interpreter to
the value in the editor is correct approach.
Perhaps interpreter should always be in utf-8 mode and editor
in whatever user chooses, but would convert the script to utf-8 (internally)
before sending to interpreter?

I'd guess it would be surprising to a user if a file looks "fine" in the
built-in editor, but then causes errors (or unexpected mojibake) when it is
executed. So, the editor encoding and the `__mfile_encoding__` should be kept
in sync imho.
The editor saves to files. It doesn't "send" code to the interpreter. So, it
is unclear to me where the conversion you are proposing should be happening.


    _______________________________________________________

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]