Some [seems binary] files ask for being saved

Started by Arthur, January 19, 2010, 05:09:48 AM

Previous topic - Next topic

Arthur

This is strange that once I open a binary file it becomes highlighted in red (thus telling me it was modified) and indeed if I want to close it (I am sure, I did not modify it) I see the dialog prompting to save it (image attached).
Ironically, even HE's License.dat wants to be saved  ;) 
To make sure I did not lose my mind I opened it in the old good Windows Notepad and it did not prompt me to be saved.
Is there a potential for a bug here?

alex

Hi Arthur,

Have you tried with 1.48.756 ? There is logic with encoding change leading to modified state was adjusted.

But probably the reason is different (I have tried with license.dat):
after opening, you should see warning message in status bar:
Null characters (00H) contained in the document were replaced by spaces.
- because 00H can not be displayed in text mode, so they were replaced by spaces (some when they were replaced by line breaks, but I have changed the logic).
And because of this replacements, document was set to modified. And I think, here it is correct, because if you fex save as then such document, it will differ from original, and you should be aware about this.
Maybe, if in the future I will add HEX mode, this will not happen, because in HEX mode there is no need to replace NULLs.

So, as far as I see this is works as designed.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur