Bug 96879 - Cut and Paste from Konsole loses spaces
Summary: Cut and Paste from Konsole loses spaces
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-13 00:15 UTC by Christopher Colohan
Modified: 2006-05-21 22:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Colohan 2005-01-13 00:15:36 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs
OS:                Linux

1.  Put the following shell script into a file:
#!/bin/sh
echo ///////////////////////////////////////////////////////////cmd -xxxxxxxxxx xxxxxxxx ./xxxxxxxxxxxx -x xxxxxxxxxxxxxxxxxxxxxx -xxxxxxxxxxxxx -xxxxxx ./xxxxxxxxxxx XX -xx ./xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -xxxxxx 4 -xxxx 4 -xxxxxxxxxxxxxxxxxx 10 -xxxxxxxxxxxxxxxxxxxxx 1 -xxxxxxxxxxxxxxxxxxxxxx 10 -xxxxxxxxxxxxxxxxxxxx 3 -xxxxxxxxxxxxx 128 -xxxxxxxxxxxx -xxxxxxxxxxxxxxx 1

(If this doesn't come through bugzilla properly, retrieve a copy from http://www.colohan.com/tmp/kde_test)

2. Open up konsole, xterm, and xemacs.  Make sure that your konsole and xterm are exactly 80 columns wide.

3. Run the script in both the konsole and xterm.

4. Highlight the script output in konsole with the left mouse button.  Paste it into xemacs using the middle mouse button.

5. Highlight the output in xterm with the left mouse button.  Paste it into xemacs using the middle mouse button.

6. Note that the two pastes produced _different_ results.  In particular, konsole drops a space in the middle of the string, and the result contains the substring "-xxxx4" which is not in the original script.  The text copied from xterm does not have this problem.
Comment 1 Christopher Colohan 2005-01-13 00:20:31 UTC
As I suspected, this web bug reporting interface didn't let me attach the script without mangling it.  It should be two lines long (the hashbang line, and the echo line).  Any newlines that this web interface added should be turned into spaces.

Just retrieve a copy from http://www.colohan.com/tmp/kde_test...
Comment 2 Kurt Hindenburg 2005-01-13 07:15:01 UTC
Works for me on CVS/HEAD.  Note that I fixed a bug dealing with spaces/copy/paste a few weeks ago.  See BUG: 90201

Note that I don't have any emacs on my system, I used vim.

You should attach your script to this bug report.


Comment 3 Marijn Schouten 2006-04-28 13:17:55 UTC
Does this bug still exist, Christopher?
Comment 4 Kurt Hindenburg 2006-05-21 22:50:22 UTC
Can't reproduce thought I don't have emacs nor xemacs on my system... consider upgrading to KDE 3.5.x