Main Menu

[Solved] Data Loss

Started by HippoKondriaq, January 20, 2017, 06:00:40 AM

Previous topic - Next topic

HippoKondriaq

How to reproduce:

  • Start Microsoft Notepad.
  • Type the following text into an empty file: ABC123
  • Save the file as test.txt.
    Make sure that Encoding is set to ANSI.
  • Open test.txt with HippoEDIT.
    In my case, the Document Encoding of the file is identified as 20127 (US-ASCII).
  • Enter ... (horizontal ellipsis) after ABC123 by typing Alt+0133.
  • Hit Ctrl+S to save the file.
    The following message pops up:
    Quote from: HippoEDIT (Document Encoding Wrong)Some Unicode characters in this document could not be saved in the current codepage.
    Do you want to re-save this document as Unicode in order to maintain your data?

    [Yes] [No] [Save With Other Encoding] [Cancel]

    [  ] Don't ask me again (always use selected)
  • Select Cancel.
    Using your file manager, you'll observe that text.txt disappears and test.txt.auto.tmp shows up.
  • Press Ctrl+Z to undo the changes you made to text.txt.
  • Close test.txt.
    test.txt.auto.tmp is deleted.


HippoEDIT v1.60.34 (hippou160.exe)
Windows XP Professional SP3 (v5.1.2600) English
Active code page: 437 (United States)
Intel Core 2 Duo E7500 @ 2.93GHz

alex

Hi,

Cool ;) I have mostly reproduced it.

I was not able to get 20127 as auto detected code page for the new file - in my case, it was my default code page. But the issue with auto detection encoding may occur - there are too less data for proper detection. But one can always select the proper one in the status bar, or in file open dialog.

So, if you type Unicode symbol, that is not presented in current encoding, the popup for extended save was OK.
But lost original file after Cancel - is an ugly bug. I will fix it in next build.

The *.auto.tmp file is OK - it is auto recovery information. It exists, when unsaved data exist and deleted after save.

Thanks for great scenario description!

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

HippoKondriaq

#2
Thanks for looking into this, Alex! I'll report back as soon as the new release is available.

Quote from: alex on January 23, 2017, 01:40:13 AMI was not able to get 20127 as auto detected code page for the new file - in my case, it was my default code page. But the issue with auto detection encoding may occur - there are too less data for proper detection. But one can always select the proper one in the status bar, or in file open dialog.

So, if you type Unicode symbol, that is not presented in current encoding, the popup for extended save was OK.
But lost original file after Cancel - is an ugly bug. I will fix it in next build.

The *.auto.tmp file is OK - it is auto recovery information. It exists, when unsaved data exist and deleted after save.

Exactly, the deletion of both test.txt and test.txt.auto.tmp is the only bug. Everything else works as expected. I just wanted to give you as much info as possible.

PS: I'm attaching a sample file (test.reg) just in case.

alex

OK, then it is already fixed ;)
I will release new build today/tomorrow, after doing tests.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

HippoKondriaq

#4
Thanks for the new release and your prompt action in fixing this bug, Alex 8)

alex

NP. I am always happy to fix bugs if I can reproduce them ;)
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]