[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62588] End of file isn't cleared on save when
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #62588] End of file isn't cleared on save when removing characters |
Date: |
Mon, 6 Jun 2022 08:15:13 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62588>
Summary: End of file isn't cleared on save when removing
characters
Project: GNU Octave
Submitter: mmuetzel
Submitted: Mon 06 Jun 2022 02:15:10 PM CEST
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 7.1.0
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 06 Jun 2022 02:15:10 PM CEST By: Markus Mützel <mmuetzel>
When removing characters in a file using the built-in editor, the file isn't
shrunk to the new size. Instead, the tail of the file is duplicated.
Steps to reproduce:
1. Create some file with the following content and save it as
`test_editor_tail.m`:
This a file with arbitrary content to reproduce the error.
>> system('cat test_editor_tail.m')
This a file with arbitrary content to reproduce the error.
ans = 0
2. Delete some part of the file and save it again:
This a file to reproduce the error.
>> system('cat test_editor_tail.m')
This a file to reproduce the error.
o reproduce the error.
ans = 0
For some reason, the file appears as expected in the built-in editor. But
actually, the file size didn't change and the trailing characters remain at
the end of the stored file.
"Force newline at end when saving file" and "Remove trailing spaces when
saving file" is activated in case that should matter.
This is a regression from Octave 7.1.0 on the stable branch.
Tested on Linux. But it's probably an issue on any platform.
CC'ing Torsten because he might hopefully have an idea of what might be going
on.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62588>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62588] End of file isn't cleared on save when removing characters,
Markus Mützel <=