Closed Bug 104462 Opened 23 years ago Closed 23 years ago

Text copy via clipboard to external program including 8-bit characters get two newlines appended

Categories

(Core :: DOM: Selection, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 98572

People

(Reporter: mozspam4kurt, Assigned: mjudge)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010917 BuildID: 2001091712 When copying text from the browser to an external program and the text contains an 8-bit character (for example "å"), the copied text will contain two newlines appended to the selected text. (No newlines are in the desired/selected text.) Note this this will NOT be a problem if the text is copied from an input field. Reproducible: Always Steps to Reproduce: 1. Select this "å" with the mouse, but not the whole line 2. Copy it to an external program (shell window, emacs) Actual Results: å<newline><newline> Expected Results: å
Sorry, it seems this happens only on some web sites, such as http://www.svt.se/texttv/in.html, but not http://www.dn.se
The problem is also exhibited in http://bugzilla.mozilla.org/show_bug.cgi?id=104462 (i.e. this bug page)...
selection?
Assignee: pchen → mjudge
Component: XP Apps → Selection
QA Contact: sairuh → tpreston
This must be a dup?? I always get 2 extra linefeeds regardless of what i copy first. It's been happening for the longest time. Very annoying when pasting to terminal emulators, when commands sometimes go wrong since the paste will "execute" whatever due to the extra linefeeds. Currently seeing it with 2001101108 linux.
I'd bet money (okay, not a lot of it) that this is yet another dup of the very popular 98572, and that you're only seeing this when copying from preformatted blocks. Check that out, and mark it a dup if it's true about the preformatted blocks (the two examples given in this bug -- bugzilla comments and the referenced external page -- are).
The text in main area of reporters URL is <pre> formatted. That is the only place the character "å" appears in cleartext on the page. Resolving as dup of bug 98572. *** This bug has been marked as a duplicate of 98572 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.