Bug 181368 - Copy&Paste loses tab on line break
Summary: Copy&Paste loses tab on line break
Status: RESOLVED INTENTIONAL
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-20 06:57 UTC by Christoph Burgmer
Modified: 2012-02-25 17:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
results in various terminal emulators (2.41 KB, text/plain)
2011-10-13 13:43 UTC, Jekyll Wu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Burgmer 2009-01-20 06:57:40 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Debian testing/unstable Packages

When copy and pasting strings with Konsole being the source, tabs "\t" (and from my experience probably other whitespace characters) occuring at the end of a line in Konsole get swallowed.


Testcase

In the following example I print an array of numbers separated by tabs three times, once at line size 80, then 82 and 84. See what happens when I paste the output into the bug report:

$ python
Python 2.5.2 (r252:60911, Jan  4 2009, 17:40:26)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> b
[u'14', u'12', u'11', u'8', u'8', u'7', u'7', u'5', u'2', u'3', u'2', u'2', u'1', u'2', u'1', u'1', u'1', u'0', u'0', u'4']
>>> print '\t'.join(b)
14      12      11      8       8       7       7       5       2       3      22       1       2       1       1       1       0       0       4
>>> print '\t'.join(b)
14      12      11      8       8       7       7       5       2       3       221       2       1       1       1       0       0       4
>>> print '\t'.join(b)
14      12      11      8       8       7       7       5       2       3       2  21       2       1       1       1       0       0       4
Comment 1 Christoph Burgmer 2009-03-13 07:33:31 UTC
Still in KDE 4.2.1

I would appreciate confirmation from you developers. Thanks.

For the testcase above, I forgot the line:
>>> b = [u'14', u'12', u'11', u'8', u'8', u'7', u'7', u'5', u'2', u'3', u'2', u'2', u'1', u'2', u'1', u'1', u'1', u'0', u'0', u'4']
to initialize b first.
Comment 2 Kurt Hindenburg 2009-07-05 19:09:55 UTC
Can you try the latest 4.2.x?

Here's what I get on trunk

>>> print '\t'.join(b)
14      12      11      8       8       7       7       5       2       3      22       1       2       1       1       1       0       0       4
>>> print '\t'.join(b)
14      12      11      8       8       7       7       5       2       3      22       1       2       1       1       1       0       0       4
>>> print '\t'.join(b)
14      12      11      8       8       7       7       5       2       3      22       1       2       1       1       1       0       0       4

So the 2nd line shouldn't have '22' ?
Comment 3 Christoph Burgmer 2009-07-05 20:12:17 UTC
KDE 4.2.4, Konsole 2.2.3

Correct, 2nd line should not have a 22.

I think you did the command three times and only then resized the window, as I can still reproduce my original findings. You should do Command, Resize, Command, Resize, Command.
Comment 4 Christoph Burgmer 2010-03-26 15:20:49 UTC
Still present in 4.3.4
Comment 5 Jekyll Wu 2011-10-13 13:43:46 UTC
Created attachment 64483 [details]
results in various terminal emulators

well, I can reproduce the reported problem with konsole-2.7.2 . However, the reported problem also happens with almost the same result in every terminal emulator I have tested. So I am not sure whether this is a bug or an expected (wrong) behavior.

The attachment is the summary of the results in xterm/konsole/vte/rxvt-unicode/mlterm/putty .
Comment 6 Jekyll Wu 2012-02-25 17:51:39 UTC
Close it as WONTFIX according to my observation in comment #5.