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

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

[Octave-bug-tracker] [bug #57304] Error message for non-UTF-8 encoded *.


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #57304] Error message for non-UTF-8 encoded *.m files
Date: Tue, 26 Nov 2019 14:30:16 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0

Update of bug #57304 (project octave):

                  Status:                    None => Ready For Test         

    _______________________________________________________

Follow-up Comment #1:

There shouldn't be any conversion happening if the input encoding is UTF-8.
I don't see any errors if I set the mfile_encoding to "UTF-8" on Windows.
But I do see the error on Linux. This is because the default mfile_encoding is
"system" and the system happens to return upper case "UTF-8" for that. This is
compared to lower case "utf-8".
Setting the mfile_encoding to "UTF-8" avoids the issue also on Linux.

I pushed the following change to convert the system encoding to lower case
before comparing it:
http://hg.savannah.gnu.org/hgweb/octave/rev/5fc630696dc7

Marking as ready for test.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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