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: Guillaume
Subject: [Octave-bug-tracker] [bug #57304] Error message for non-UTF-8 encoded *.m files
Date: Tue, 26 Nov 2019 06:10:34 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

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

                 Summary: Error message for non-UTF-8 encoded *.m files
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Tue 26 Nov 2019 11:10:33 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

With Octave 6 being more specific about file encoding, I foresee that a
non-negligible amount of existing *.m files will have issues. Currently the
reported error is (see attached example):


error: file_reader::get_input: converting from codepage 'UTF-8' to UTF-8:
Invalid or incomplete multibyte or wide character


This takes place even if the problematic character is in a comment and it's
not necessarily obvious from the error message that the issue is with the
parsing of the *.m file itself and not during its execution. Would it be
possible to make the error message clearer to the user, pointing out the first
line with an issue and perhaps provide a link or instruction on how to solve
the issue? 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 26 Nov 2019 11:10:33 AM UTC  Name: angstrom.m  Size: 34B   By: gyom

<http://savannah.gnu.org/bugs/download.php?file_id=47933>

    _______________________________________________________

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]