aboutsummaryrefslogtreecommitdiff
path: root/deskutils/kdepim44/files/patch-kmail-utf8.diff
blob: 89b2346b9dd5fae9ce91e539b86b36ae331ffb21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: kmaccount.cpp
===================================================================
--- kmail/kmaccount.cpp	(revision 656120)
+++ kmail/kmaccount.cpp	(working copy)
@@ -399,7 +399,9 @@ QString KMAccount::encryptStr(const QStr
 {
   QString result;
   for (uint i = 0; i < aStr.length(); i++)
-    result += (aStr[i].unicode() < 0x20) ? aStr[i] :
+    /* yes, no typo. can't encode ' ' or '!' because
+       they're the unicode BOM. stupid scrambling. stupid. */
+    result += (aStr[i].unicode() <= 0x21 ) ? aStr[i] :
       QChar(0x1001F - aStr[i].unicode());
   return result;
 }