Bug 519066

Summary: Cut and paste to GNU screen is not reliable
Product: [Fedora] Fedora Reporter: Toshio Ernie Kuratomi <a.badger>
Component: screenAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: fedora, jreznik, kevin, lorenzo, ltinkl, mlichvar, rdieter, smparrish, than
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-01 11:33:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Toshio Ernie Kuratomi 2009-08-24 19:38:33 UTC
Description of problem:
Cutting and pasting text from the source view corrupts the paste on some websites.


Version-Release number of selected component (if applicable):

arora-0.8.0-1.fc11.i586
qt-4.5.2-2.fc11.i586
qt-x11-4.5.2-2.fc11.i586

How reproducible:

Seemingly everytime

Steps to Reproduce:
1. in arora, browse to https://fedoraproject.org/wiki/Fedora_Project_Wiki
2. View source (View::Page Source)
3. Ctrl-A Ctrl-C to select all and copy to clipboard
4. Go to a text editor and paste the text.  Save.
5. Open a new text editor window.  paste the text again.  Save as a different file.
6. Compare the two files. (using diff, kompare, etc)

You can repeat this several times and get different results each time.
  
Actual results:

The two text files differ

Expected results:

The same text file in each
Additional info:

Comment 1 Jaroslav Reznik 2009-08-25 08:03:32 UTC
What text editor do you use? I can't reproduce it, saved files are same. Tried in kwrite.

Comment 2 Toshio Ernie Kuratomi 2009-08-25 16:27:08 UTC
Sorry, it looks like a konsole bug.

I used vim.  In gvim and vim running in yakuake cut and paste from the source view to vim correctly produces the same output.  In vim running in konsole, the paste is corrupted.

[At the prompt type:]
$ vim t1
[Inside of vim type:]
:set paste
i
[paste from the source view]
[Hit the ESC key]
:wq
[At the command prompt again]
$ vim t2
[Inside of vim again]
:set paste
i
[paste from the source view]
[Hit the ESC key]
:wq

diff -u t1 t2

kdebase-4.3.0-1.fc11.i586
kdebase-libs-4.3.0-1.fc11.i586
vim-enhanced-7.2.148-1.fc11.i586
qt-4.5.2-2.fc11.i586

Comment 3 Jaroslav Reznik 2009-08-26 12:42:35 UTC
Still I can't reproduce it even in Konsole using Vim. I am going to close it some WORSFORME. If you find the way we can reproduce it, feel free to reopen this bug.

Comment 4 Toshio Kuratomi 2009-08-26 18:49:54 UTC
got it -- for those following at home, it's a long standing screen bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286063

Comment 5 Miroslav Lichvar 2009-09-01 11:33:15 UTC

*** This bug has been marked as a duplicate of bug 469890 ***