Closed
Bug 60739
Opened 25 years ago
Closed 24 years ago
Won't copy/paste past "'" character
Categories
(Core :: XUL, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla0.8
People
(Reporter: barnett, Assigned: pavlov)
References
()
Details
Attachments
(2 files)
331 bytes,
text/html
|
Details | |
818 bytes,
patch
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 2•25 years ago
|
||
Build ID: 2000100722 - M18
(Thought it picked this up automatically, sorry.)
Target Milestone: --- → M18
![]() |
||
Comment 3•25 years ago
|
||
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.
Comment 4•25 years ago
|
||
setting back target milestone, this is for developers only.
could someone create a test case for this?
Target Milestone: M18 → ---
Reporter | ||
Comment 5•25 years ago
|
||
Comment 6•25 years ago
|
||
--> xpt copy/paste issue
Assignee: asa → trudelle
Component: Browser-General → XP Toolkit/Widgets
QA Contact: doronr → jrgm
Comment 8•25 years ago
|
||
->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
Assignee | ||
Updated•25 years ago
|
Assignee: akkana → pavlov
Assignee | ||
Comment 10•25 years ago
|
||
doesn't happen with xemacs... i'm prolly chopping off something i shouldn't be.
(or emacs is broken)..
Assignee | ||
Comment 11•25 years ago
|
||
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
Comment 12•25 years ago
|
||
I don't think the converter fails to convert a single quote.
Does the converter returns any error when the truncation happens?
Comment 13•25 years ago
|
||
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
Assignee | ||
Comment 14•25 years ago
|
||
ok, but why is it cutting off the characters following the quote?
Comment 15•25 years ago
|
||
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
Assignee | ||
Comment 16•25 years ago
|
||
I can fix this real quick.
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9 → mozilla0.8
Comment 17•24 years ago
|
||
then please do!
Assignee | ||
Comment 18•24 years ago
|
||
fixed
Assignee | ||
Comment 19•24 years ago
|
||
er, not fixed.. will be in a sec
Assignee | ||
Comment 20•24 years ago
|
||
Comment 21•24 years ago
|
||
God, the hated '?' returns. sr=shaver, because it's better than what we've got now.
Assignee | ||
Comment 22•24 years ago
|
||
r=blizzard will check in when tree is green
Assignee | ||
Comment 23•24 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 24•24 years ago
|
||
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.
You need to log in
before you can comment on or make changes to this bug.
Description
•