From kde-bugs-dist Mon Mar 31 22:00:03 2003 From: Ingo "Klöcker" Date: Mon, 31 Mar 2003 22:00:03 +0000 To: kde-bugs-dist Subject: [Bug 56570] kmail doesn't show non-mime Japanese message X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=104914817204259 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=56570 ingo.kloecker@epost.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED ------- Additional Comments From ingo.kloecker@epost.de 2003-03-31 23:59 ------- Subject: kdepim/kmail 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 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 @@ -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;