Bug 245281

Summary: attachment names containing utf8 and quote characters are truncated
Product: [Applications] kmail Reporter: Denis Prost <denis.prost>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: bjoern, montel
Priority: NOR Keywords: junior-jobs
Version: 1.13.5   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: kdepim 4.6

Description Denis Prost 2010-07-21 06:25:55 UTC
Version:           1.13.5 (using KDE 4.4.4) 
OS:                Linux

when the attachment name contains an utf8 character, for example "à", and a simple quote, only the part after the simple quote appears as attachment name.

(with kde 4.4.5, not in the proposed KDE version list above)

Reproducible: Always

Steps to Reproduce:
1) touch "à la Caisse d'Epargne"
2) attach that file to a message

Actual Results:  
the attachment name that appears is "Epargne"

Expected Results:  
The attachment name should be "à la Caisse d'Epargne"

OS: Linux (i686) release 2.6.33.6-pclos1.bfs
Compiler: gcc
Comment 1 Laurent Montel 2010-07-21 17:53:40 UTC
I can confirm it
Perhaps a bug in:
QString KMMessagePart::fileName( void ) const;
Need to investigate
Comment 2 Laurent Montel 2010-07-21 18:02:44 UTC
it's this function which creates this bug
    return KMMsgBase::decodeRFC2231String( str );
Comment 3 Christophe Marin 2011-05-02 15:46:09 UTC
Cannot reproduce with the given steps in KMail2. The issue is fixed in kdepim 4.6