Bug 85473

Summary: knode doesn't convert charset for XOVER command
Product: knode Reporter: Alexander Buloichik <Alexander_Buloichik>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.7.7   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alexander Buloichik 2004-07-19 13:23:09 UTC
Version:           0.7.7 (using KDE 3.2.3,  (testing/unstable))
Compiler:          gcc version 3.3.3 (Debian 20040422)
OS:                Linux (i686) release 2.6.7mono

I have sn newsserver, messages with koi8-r charset in new server, and ru_RU.UTF-8 locale in KDE.

When knode retrieves message list for newsgroup, it sends XOVER command to the nntp server. NNTP server retrieves list of messages in stored encoding(koi8-r), and knode displays they without convert charset, then I see incorrect subjects in message list.

When I see View/Encoding/koi8-r, instead View/Encoding/Auto, then subjects display incorrectly, but when I click on subject, then it displays in correctly encoding.

View/Encoding settings doesn't stored for next run of knode.
Comment 1 Olivier Trichet 2009-05-10 20:17:30 UTC
SVN commit 966237 by otrichet:

Try to properly decode 8bit string coming from XOVER listing

 - Use the default charset of the group (or the global posting charset
   -- need to add a global default reading charset --) to decode 8bit
   data (From and Subject). This restore the behaviour from KDE3
 - The from and subject line in the message view should also be fine
   when the message is not what we usually expect.

This needs that either the global charset or the charset of the group to
be defined to the local legacy encoding to do something usefull.
Viva UTF-8.

BUG: 85473
BUG: 114898
BUG: 179703
BUG: 188783
BUG: 114199
BUG: 163114

 M  +12 -2     knarticle.cpp  
 M  +16 -8     kngroup.cpp  
 M  +34 -2     utils/locale.cpp  
 M  +34 -3     utils/locale.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=966237