Summary: | View Source does not display russian message source correctly | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | Roman Shiryaev <mih_val> |
Component: | GUI | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.5.94 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Roman Shiryaev
2003-12-13 21:46:23 UTC
Confirmed. But I don't know if this is a bug or a feature. *** Bug 73068 has been marked as a duplicate of this bug. *** Bug 76482: kmail does not display the language of Asia here ("View->View Source"). http://bugs.kde.org/show_bug.cgi?id=76482 Please check it out. I think , resolve your problem. Thanks. I've rebuilt kdepim and it's all right now (: I'm glad. so, mark as duplicate of #76482 and wait for KMail developers to apply patch? I have also noticed that search function doesn't work (it doesn't find anything) if search request is "body contains" "any cyrillic text" So It's important problem. CVS commit by tilladam: Use the right codec instead of latin1 when showing the source of mails. Patch by Toyohiro Asukai <toyohiro@ksmplus.com>. Thanks a lot. CCMAIL: 70343-done@bugs.kde.org CCMAIL: 76482-done@bugs.kde.org M +3 -1 kmcommands.cpp 1.155 --- kdepim/kmail/kmcommands.cpp #1.154:1.155 @@ -617,5 +617,7 @@ KMCommand::Result KMShowMsgSrcCommand::e { 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 |