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

List:       kde-commits
Subject:    KDE_3_2_BRANCH: kdepim/kmail
From:       Lukáš Tinkl <lukas () kde ! org>
Date:       2004-06-28 14:57:58
Message-ID: 20040628145758.B652A9144 () office ! kde ! org
[Download RAW message or body]

CVS commit by lukas: 

backport CVS commit by tilladam: 

Use the right codec instead of latin1 when showing the source of mails.
(fixes #70343 and a couple of dupes)


  M +3 -1      kmcommands.cpp   1.99.2.6


--- kdepim/kmail/kmcommands.cpp  #1.99.2.5:1.99.2.6
@@ -553,5 +553,7 @@ void KMShowMsgSrcCommand::execute()
 {
   KMMessage *msg = retrievedMessage();
-  QString str = QString::fromLatin1( msg->asString() );
+  QString str = QTextCodec::codecForName(  msg->charset().isEmpty() ?
+                QCString( kmkernel->networkCodec()->mimeName() ) :
+                msg->charset() )->toUnicode( msg->asString() );
 
   MailSourceViewer *viewer = new MailSourceViewer(); // deletes itself upon close


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

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