[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    [Kde-pim] imap4 locale bug
From:       Barış_Metin <baris () uludag ! org ! tr>
Date:       2005-06-21 23:14:46
Message-ID: 200506220214.50807.baris () uludag ! org ! tr
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Hello,

I'm sorry for comming up with this issue again :(. This was reported in bug 
#91089 (imap connection problem with tr_TR locale) and fixed a while ago.

But it seems that the bug is only solved for tr_TR.UTF-8 locale. It is still a 
problem in tr_TR  (ISO) locale. It's my fault, I should test harder :(.

Attached patch solves the problem for tr_TR locale too. What do you think? I'm 
not comfortable with the temporary variable but couldn't find a way with the 
current behaviour of kAsciiToLower.

best regards,
-- 
Barış Metin

["kdepim-imap4-Turkic-locale.patch" (text/x-diff)]

Index: kioslaves/imap4/imapparser.cc
===================================================================
--- kioslaves/imap4/imapparser.cc	(revision 427776)
+++ kioslaves/imap4/imapparser.cc	(working copy)
@@ -57,6 +57,7 @@
 #include <kurl.h>
 
 #include <kasciistricmp.h>
+#include <kasciistringtools.h>
 
 imapParser::imapParser ()
 {
@@ -631,7 +632,9 @@
 
 void imapParser::parseCapability (parseString & result)
 {
-  imapCapabilities = QStringList::split (' ', result.cstr().lower());
+  char* tmp = strdup(result.cstr());
+  imapCapabilities = QStringList::split (' ', KPIM::kAsciiToLower(tmp));
+  free(tmp);
 }
 
 void imapParser::parseFlags (parseString & result)

[Attachment #8 (application/pgp-signature)]

_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic