Closed Bug 1046869 Opened 10 years ago Closed 2 years ago

Copy from source: null character / zero byte and everything after it is lost.

Categories

(Core :: Widget: Gtk, defect, P5)

31 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1818910

People

(Reporter: mlissner+bugzilla, Unassigned)

References

Details

(Keywords: reproducible, testcase)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release) Build ID: 20140715214327 Steps to reproduce: Attempted to copy/paste the contents of View Source for the page currently live at: - http://courts.delaware.gov/opinions/list.aspx?ag=supreme%20court And attached as downloaded by wget. Actual results: Instead of copying all of the text, it copied the text up to a poorly encoded character around line 400, then stopped. Expected results: When I pasted the source into an editor, it should have pasted everything. In fact, when I do this on Chrome, I'm able to copy everything.
I can copy-paste everything, although I'm checking on OS X and with 32 beta... What character is causing the problem, do you know? Can you try on a newer version of Firefox (beta or nightly or such) ?
Flags: needinfo?(mlissner)
Line 401 in the attached has the following content: </a></strong><a href='mailto:?subject=Delaware Supreme Court: Matter of McManus&body=Order{SOME-EVIL-THING}Writ of Certiorari http://courts.delaware.gov/Opinions/Download.aspx?ID=209390'> I don't know what the evil character is (and I *abhor* enconding issues!), but I can tell you that I can't copy/paste that line in either Nightly (33.0a1 (2014-07-07)) or Firefox 31. In the source code, the character shows up as the weird square block thing, with the numbers 0 0 0 0 inside.
Flags: needinfo?(mlissner)
(In reply to Mike Lissner from comment #2) > In the source code, the character shows up as the weird square block thing, > with the numbers 0 0 0 0 inside. Same here. A null character?
Status: UNCONFIRMED → NEW
QA Whiteboard: [bugday-20140804]
Ever confirmed: true
Summary: Copy from Source Fails on Terrible Encoding → Copy from source: null character / zero byte and everything after it is lost.
Indeed, it's a null character. My hex editor says that "r<strange>W" is: 72 00 57. Moving this to core, although I'm not sure where it would belong... it might even be the OS clipboard, for all I know (esp. because it works on OS X - the 0 byte seems to just be stripped out).
Component: Untriaged → Widget: Gtk
Product: Firefox → Core
I can copy it in GVim, I can copy-paste it in GVim, but then not paste into gedit (nothing is copied). If I open it in gedit, it is declared a character invalid for the encoding, and rendered as "\00" (3 separate characters, but displayed red). Ctrl+Shift+U, 0000 beeps and does not insert anything.
Severity: normal → S3
See Also: → 1818910
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1818910
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: