Bug 82093

Summary: Whitespace is converted to 0xA0 when copying from messages to clipboard
Product: [Applications] kmail Reporter: Erik Sandberg <ersa9195>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.6.2   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Erik Sandberg 2004-05-24 10:38:21 UTC
Version:           1.6.2 (using KDE KDE 3.2.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When a message body contains a line starting with two or more consecutive whitespace (0x20) characters, then the first one is converted to 0xA0 in clipboard.

How to reproduce:

Create a new message, whose body contains only the text
foo
  bar
i.e. with exactly two whitespace (0x20) characters before 'bar'. Save the message in the 'drafts' folder; open the drafts folder, choose this new message (but don't start to edit it). Now mark the entire text of the message body, and choose "copy to clipboard". Open kedit (or any other editor), choose 'paste', and save the file as '/tmp/foo'. Now, execute 'less /tmp/foo'
and you will get the following output:
foo
<A0> bar
Expected behaviour is of course:
foo
  bar

(This bug is the same as #28580, which was closed almost 3 years ago. It should be re-opened)
Comment 1 Tom Albers 2004-07-22 22:14:35 UTC
Erik, I've followed your instructions with the current development version of KMail. The problem is not reproducable anymore. So this is fixed.