Closed Bug 60739 Opened 25 years ago Closed 24 years ago

Won't copy/paste past "'" character

Categories

(Core :: XUL, defect, P2)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla0.8

People

(Reporter: barnett, Assigned: pavlov)

References

()

Details

Attachments

(2 files)

The third paragraph of the URL above starts out with: "We really started to see signs that we weren't dealing with the same Intel..." If I try to highlight this text with the mouse (i.e., copy the text to primary X selection) and then paste this selection into EMACS (or even this very textfield here), I only get: We really started to see signs that we weren Whatever character the "'" is in the HTML, it is preventing the text from being copied completely into the X selection.
Which build ID are you using?
Build ID: 2000100722 - M18 (Thought it picked this up automatically, sorry.)
Target Milestone: --- → M18
I see this with linux build 2000-11-19-21. Pasting into a Mozilla textarea or an xterm works just fine. Pasting into emacs pastes up to the quote and sets the mark; pasting into the gimp (into the "add some text" tool) pastes up to the quote. So this seems to be a problem with the applications receiving the paste, not Mozilla.
setting back target milestone, this is for developers only. could someone create a test case for this?
Target Milestone: M18 → ---
--> xpt copy/paste issue
Assignee: asa → trudelle
Component: Browser-General → XP Toolkit/Widgets
QA Contact: doronr → jrgm
*** Bug 61280 has been marked as a duplicate of this bug. ***
->pinkerton/p2/moz0.9, cc pav, confirming and bumping severity to major due to data loss.
Assignee: trudelle → pinkerton
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: P3 → P2
Target Milestone: --- → mozilla0.9
must be a parser/content problem.
Assignee: pinkerton → akkana
Assignee: akkana → pavlov
doesn't happen with xemacs... i'm prolly chopping off something i shouldn't be. (or emacs is broken)..
this looks like a charset converter problem... see widget/src/gtk/nsClipboard.cpp:920 after the data comes out of the converter, it no longer has anything past the point where the weird character was... cc'ing the i18n folks
I don't think the converter fails to convert a single quote. Does the converter returns any error when the truncation happens?
Okay, it is a smart quote (0x92) in windows-1252. The character is not mapped in ISO-8859-1, so it is expected that the converter to fail. Transliteration may be used here (nsISaveAsCharset), so the smart quote to be mapped to a single quote (0x27). See nsPrimitiveHelpers.cpp#178. http://lxr.mozilla.org/seamonkey/source/widget/src/xpwidgets/nsPrimitiveHelpers.cpp#178
ok, but why is it cutting off the characters following the quote?
Convert returns an error and stop when it encounters a character which cannot be mapped to a destination character set. To change the default behavior, SetOutputErrorBehavior() can be called then convertor will process the entire input. http://lxr.mozilla.org/seamonkey/source/intl/uconv/public/nsIUnicodeEncoder.h#164
I can fix this real quick.
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9 → mozilla0.8
then please do!
fixed
er, not fixed.. will be in a sec
God, the hated '?' returns. sr=shaver, because it's better than what we've got now.
r=blizzard will check in when tree is green
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Do you use "?" as replacement char? This is supposed to go away / be configurable (don't have bug-number handy). Please don't hardcode it.
Verified fixed linux build 2001102910
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: