The password gets corrupted if there is a "!" in it due to poor handling of utf-8 charset. This is exactly the same bug that affected kmail Reproducible: Always
Created attachment 118750 [details, diff] Copied the patch from the kmail bug report on the same issue
I posted a tentative patch, just copied the patch for kmail; it seems to me that there's no patch (at least on the stable branch) on the portage tree. Thx J
For some strange reasons the same patch does not work, even if the code is taken from kmail: /* * Function for (en/de)crypting strings for config file, taken from KMail * Author: Stefan Taferner <taferner@alpin.or.at> */ QString cryptStr(const QString &aStr) { QString result; for (unsigned int i = 0; i < aStr.length(); i++) result += (aStr[i].unicode() <= 0x21) ? aStr[i] : QChar(0x1001F - aStr[i].unicode()); return result; } Any idea?
For some strange reasons the same patch does not work, even if the code is taken from kmail: /* * Function for (en/de)crypting strings for config file, taken from KMail * Author: Stefan Taferner <taferner@alpin.or.at> */ //this is the already patched code.. QString cryptStr(const QString &aStr) { QString result; for (unsigned int i = 0; i < aStr.length(); i++) result += (aStr[i].unicode() <= 0x21) ? aStr[i] : QChar(0x1001F - aStr[i].unicode()); return result; } Any ideas? J
Thanks for finding this one Jacopo, upstream even found another case.