UTF-8 error after Ctrl+Z
I've attempted to use Password Safe as a note-keeping app, because I've found no good alternatives for password-protected note taking, and it's very convenient as Password Safe is always in use, not just a chilling window.
But I encountered a bug. To reproduce it, follow:
- Create a new entry
- Write non-English characters to Notes field, e.g. using
python3 -c "print(''.join([f'Это {i} строка.\n' for i in range(10)]), end = '')" | xclip -sel c
- Save and reopen the app (optionally).
- Add a line to this text (optionally).
- Press Ctrl+Z wanting to delete the added line. However, with the line a lot of our text will disappear, leaving only about two-thirds.
- Click Ctrl+Y hoping to restore your text. At this point everything will vanish and output shows
(Password Safe:3): Gtk-CRITICAL **: 17:01:32.933: gtk_text_buffer_emit_insert: assertion 'g_utf8_validate (text, len, NULL)' failed
This way I've lost some data that was important for me and didn't even notice at first.
Also, when pressing Сtrl+Z with any text, it often scrolls to the top, gets in the way. And when you open your notes in this reflowable window, Ctrl+Z doesn't work at all.
I propose to fix this (I can't imagine writing text without Ctrl+Z, you can accidentally delete it) and, as an option, add a special type of entry "Note entry" on par with "Password entry". First type entries could be opened several at once. With this functionality I'd entitle your app as the best one in the ratio of usability and amount of users with a tremendous margin (though I already can) =)
Until this is implemented, for me the most convenient method is to use unprotected .txt files for notes and open them with gedit
. Way back I used CherryTree and stored generated passwords in text entries there, but then I found out that its license is unclear so removed the app.
OS: Debian 10 buster (specifically ReadOS, bundled with Password Safe)
App version: 3.99.2 (latest x86_64 stable from Flathub)