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

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

[Octave-bug-tracker] [bug #55364] File overwritten with empty file if en


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #55364] File overwritten with empty file if encoding fails
Date: Wed, 2 Jan 2019 10:26:37 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

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

                 Summary: File overwritten with empty file if encoding fails
                 Project: GNU Octave
            Submitted by: mmuetzel
            Submitted on: Wed 02 Jan 2019 03:26:35 PM UTC
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.0.0
        Operating System: Any

    _______________________________________________________

Details:

Steps to reproduce:
1. Set the editor encoding to some codepage that cannot encode all characters
(e.g. ISO-8859-6).
2. Open an existing file with e.g. only ASCII characters.
3. Add some characters that cannot be saved with the selected encoding (e.g.
"äöü") and save the file.
4. An error message is displayed and the existing file is overwritten with an
empty file.

In this case, the prior content of the file should be retained.

Also in light of bug #55306, it would be nice to leave the user the option to
save the file even if not all characters can be encoded.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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