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

List:       kmail-devel
Subject:    [Bug 56570] kmail doesn't show non-mime Japanese message
From:       toyohiro () ksmplus ! com
Date:       2003-03-30 18:05:47
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=56570     




------- Additional Comments From toyohiro@ksmplus.com  2003-03-30 20:05 -------
Hi ,

I think that if "charsets" of mail header does not
define (same as non-mime mail) ,
I would like to use "kernel->networkCodec" functions.
Because the function of "kernel->networkCodec" return
to suitable locale codec. 

Please check below patch.

$diff -u kmmsgpart.cpp.org kmmsgpart.cpp
--- kmmsgpart.cpp.org   Mon Mar  3 04:07:43 2003
+++ kmmsgpart.cpp       Mon Mar 31 02:22:21 2003
@@ -6,6 +6,7 @@
 #include <kdebug.h>
 #include <kmdcodec.h>
 
+#include "kmglobal.h"
 #include "kmmsgpart.h"
 #include "kmmessage.h"
 
@@ -293,7 +294,8 @@
 const QTextCodec * KMMessagePart::codec() const {
   QTextCodec * c = KMMessage::codecForName( charset() );
   if ( !c )
-    c = QTextCodec::codecForName("iso-8859-1");
+//    c = QTextCodec::codecForName("iso-8859-1");
+    c = kernel->networkCodec();
   assert( c );
   return c;
 }

--
Toyohiro Asukai <toyohiro@ksmplus.com>
_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

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