Closed Bug 65070 Opened 24 years ago Closed 24 years ago

paste into a textarea results in gibberish

Categories

(SeaMonkey :: UI Design, defect)

DEC
OpenVMS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: colin, Assigned: colin)

Details

(Keywords: qawanted)

Attachments

(2 files)

Attempting to paste text into a textarea results in gibberish being inserted. Pasting the other way, into say a DECterm, works but a LF is always appended. This worked fine on M18, but is broken in M0.6 and M0.7.
In case it means something to someone, I'll attach the output I receive from nsClipboard.cpp with DEBUG_CLIPBOARD defined.
Attached file DEBUG_CLIPBOARD output
In widget/src/gtk/nsClipboard.cpp, if I change the order of the calls in the following code: r = DoRealConvert(gdk_atom_intern("UTF8_STRING", FALSE), aSelectionAtom); if (r) return r; r = DoRealConvert(gdk_atom_intern("COMPOUND_TEXT", FALSE), aSelectionAtom); if (r) return r; r = DoRealConvert(GDK_SELECTION_TYPE_STRING, aSelectionAtom); if (r) return r; so that COMPOUND_TEXT is first, then pasting works again. Unfortunately I don't know enough of GTK and X to know what this is. Could it be that UTF8_STRING requires X11R6 (OpenVMS is only R5)?
When DoRealConvert is called with UTF8_STRING, I see the message: error retrieving selection: length was -1 on the console. But in DoRealConvert mSelectionData.length is a positive integer and so DoRealConvert returns as if everything is well and good.
Attached patch proposed fixSplinter Review
DoRealConvert expects mSelectionData to be greater than 0 if the conversion was successful, but in SelectionReceiver we just return if the conversion failed. The patch I just attached makes sure that mSelectionData is set to something negative in the event of no conversion. Looking for a review and super-review. Pav and Chris?
Status: NEW → ASSIGNED
r=pavlov
sorry, i don't have access to vms...
Keywords: qawanted
r=blizzard
Checked in. widget/src/gtk/nsClipboard.cpp rev 1.89
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
->tpreston for copy/paste [dunno if she has access to vms, tho'].
QA Contact: sairuh → tpreston
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: