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

List:       kde-commits
Subject:    kdepim/kmail
From:       Ingo Klöcker <ingo.kloecker () epost ! de>
Date:       2003-03-31 21:59:52
[Download RAW message or body]

CVS commit by kloecker: 

Fix bug 56570: kmail doesn't show non-mime Japanese message

Default to local encoding if no charset is specified for a message part. Patch by \
Toyohiro Asukai <toyohiro@ksmplus.com>

CCMAIL: 56570-fixed@bugs.kde.org


  M +4 -1      kmmsgpart.cpp   1.99


--- kdepim/kmail/kmmsgpart.cpp  #1.98:1.99
@@ -9,4 +9,5 @@
 #include "kmmsgpart.h"
 #include "kmmessage.h"
+#include "kmkernel.h"
 
 #include <kmime_charfreq.h>
@@ -72,5 +73,7 @@ const QTextCodec * KMMessagePart::codec(
   const QTextCodec * c = KMMessage::codecForName( charset() );
   if ( !c )
-    c = QTextCodec::codecForName("iso-8859-1");
+    // no charset means us-ascii (RFC 2045), so using local encoding should
+    // be okay
+    c = kernel->networkCodec();
   assert( c );
   return c;


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

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