StyledEdit does not check read-only status of a file prior to writing to it.
|Reported by:||ver||Owned by:||korli|
|Keywords:||stylededit save read-only||Cc:||ver@…|
|Has a Patch:||no||Platform:||All|
This is easy to demonstrate...
Create a file, set it to read-only by changing the file's mode to exclude any write bits, and then open it in StyledEdit. Change the file contents, and save it. No warning is produced. I don't believe this is expected behaviour as Pe and Vi (for example) both warn prior to writing to a read-only file.
I have included a patch which relies on #5520 to work, but will compile and produce indifferent results otherwise.