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: Sun, 2 Apr 2023 04:04:32 -0400 (EDT)

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


> A suggested workaround is to set encoding to "utf-8".

I'm not sure if this is a good work-around in general. If users have .m files
with non-ASCII characters, they'd need to continue using the same encoding
that they used when creating those .m files.
Alternatively, they could transcode all their .m files to UTF-8 and start
using that from now on.

Fixing the encoding to "UTF-8" when opening the file stream with `fopen` might
be a better workaround for Octave 8.1. But that might require changes in
multiple places or in .m files that aren't "owned" by the user.

> I see references to Octave 8.2, but is it available yet as a Windows
package?

Nightly builds that include the recent fixes should be available from here
when the workers are up again:
https://buildbot.octave.space/#/download

(Wait for a build after March 31 that will default to outputting UTF-8 when no
encoding is specified with `fopen`.)


    _______________________________________________________

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]