-
|
Hi, I'm using Debian 13 on wayland (wayfire). If I save a not with the following in it locks the file with an unknown password. �6Feathers I don't have any way around it apart from not using control-k characters. I tried grabbing the latest source and compiling it, but still the same issue. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
You may have encountered this: #397. Qt6 doesn't accept such characters in its XML docs anymore. |
Beta Was this translation helpful? Give feedback.
-
|
The backward-incompatible change in Qt6 isn't good news, but why should you add control characters in the first place? Qt uses HTML tags, which are included through FeatherNotes' formatting actions (or their shortcuts). |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the responses. I just use it for notes but might have to look elsewhere.. I don't need the extra security of a password. I'll likely come back to it at some stage :) |
Beta Was this translation helpful? Give feedback.
-
|
In short, The code removes So, make sure you do not add control characters to your notes! Fortunately, they're very rare and have no real use. |
Beta Was this translation helpful? Give feedback.
-
|
Extended the workaround to all "C0 controls": 20c081d. I think it should cover all rare cases. |
Beta Was this translation helpful? Give feedback.
In short,
QDomDocument::setContent()fails in Qt6 if there is any control character inside the document, while the same function worked fine with those characters in Qt5. Also read https://doc.qt.io/qt-6/xml-changes-qt6.html#control-characters.The code removes
0x000E,0x000F,0x0010and0x0011as a workaround, but searching and removing all control characters isn't an option because it can be expensive.So, make sure you do not add control characters to your notes! Fortunately, they're very rare and have no real use.