Closed
Bug 56010
Opened 24 years ago
Closed 24 years ago
Can't copy some international characters into the clipboard.
Categories
(Core :: XUL, defect, P1)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: jelwell, Assigned: pavlov)
References
()
Details
(Whiteboard: [rtm++] checked in fix on branch and trunk)
Attachments
(2 files)
43 bytes,
text/html
|
Details | |
787 bytes,
patch
|
Details | Diff | Splinter Review |
Mozilla is having problems copying/pasting the ' character. (Note: I can't not
seem to type in the ' character that is causing problems. Use the URL given to
reproduce!) Also note that the Html source does not have any peculiar escaped
characters. I'll post the source as an attachment.
Steps to Reproduce:
1) Load URL
2) Highlight the part that says, "Netscape's lack of Lightweight Directory
Access Protocol support, will be a deathblow to the browser"
3) Paste contents to another application or to Mozilla's URL field.
Actual Results:
Only "Netscape" get's pasted.
Expected Results:
"Netscape's lack of Lightweight Directory Access Protocol support, will be a
deathblow to the browser" is pasted.
Reporter | ||
Comment 1•24 years ago
|
||
I'm testing on linux 2000100909 mn6 build. I notice in vi that the ' character
in the file shows up as "~R".
Reporter | ||
Comment 2•24 years ago
|
||
Comment 4•24 years ago
|
||
Cc jst, jfrancis: noxif entity issues.
Comment 5•24 years ago
|
||
On Mac when I paste into composer, I see the ’ (curly apostrophe) character in th
raw, i.e. we're not doing any encoding. The page source contains a raw ’ too.
An example of a page with encoded entities:
http://abcnews.go.com/sections/world/DailyNews/mideast_001012.html
like:
“anguish”
When I copy-paste this into composer on Mac, I again get unencoded “”, rather
than the entities.
Keywords: rtm
Comment 6•24 years ago
|
||
Are people still seeing this on today's build? I don't see it -- I get the
entire line pasted, including the apostrophe.
Comment 7•24 years ago
|
||
I think the NOXIF landing fixed this bug (or one of the other subsequent
patches). Resolving as works for me.
Regarding Simon's comments, I think that's a separate issue (not related to
clipboard stuff) but I think that's also been fixed with today's builds. (jst
fixed some entity issues that were appearing with the NOXIF landing).
JElwell--please reopen if you can reproduce the problem you reported.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Target Milestone: --- → M18
Comment 8•24 years ago
|
||
I still see this on linux build 2000101309. I hope you're not trying to test
with anything other than the text at the zdnet url or the testcase attached to
this bug. Everything else is the plain ole apostraphe that I can type in on my
keyboard.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 9•24 years ago
|
||
(the ZDNet headline has changed)
With the testcase, although the whole line is properly copied for me, I see
what Simon saw -- a ` instead of a '
win32 branch
Component: Selection → Networking: Cache
Comment 10•24 years ago
|
||
So, I actually looked into this and it turns out this is unrelated to the NOXIF
change, we had the same problem before we landed any of the NOXIF changes.
The problem is the the textarea control (and input controls, including the URL
bar) don't seem to handle unicode at all on linux (works fine on win and mac)
and that's why we're unable to paste the weird quote on linux. I'm reassigning
this to rods in hope that he'll know where this problem is, or knows who this
belongs to.
Assignee: brade → rods
Status: REOPENED → NEW
Comment 11•24 years ago
|
||
Well, I talked to Pavlov about this and he whipped up a fix in less than a
minute and he agreed to take this bug. Reassigning. Thanks Pavlov!
Assignee: rods → pavlov
Component: Networking: Cache → XP Toolkit/Widgets
Comment 12•24 years ago
|
||
This also affects other I18N characters, so it is a common data loss scenario.
Fix is just reordering the types we look for to prefer UTF-8, one line, should
be very safe. rtm+ need info
Priority: P3 → P1
Whiteboard: [rtm+ need info]
Assignee | ||
Comment 13•24 years ago
|
||
Assignee | ||
Comment 14•24 years ago
|
||
this patch solves the problem by asking for UTF8_STRING before asking for
COMPOUND_TEXT. Compound text requires us to convert the data to the current
locale, and if that locale does not understand some characters, then you'll get
what we have here. UTF8_STRING on the other hand, won't do this conversion, and
therefore we won't lose any data.
Comment 15•24 years ago
|
||
Updated the summary based on one comment saying that it affects most
international characters.
Summary: Can't copy the ' character into the clipboard. → Can't copy some international characters into the clipboard.
Assignee | ||
Comment 16•24 years ago
|
||
someone please review this and super review this.
Comment 17•24 years ago
|
||
Comment 18•24 years ago
|
||
r=akkana, though I hope someone from I18n also looks at it.
Note, the only place where the problem shows up for me in today's builds is
pasting into the urlbar. I can paste from the attached testcase into rxvt just
fine even before the patch (shows up as a quote). But the patch does fix it in
the case of pasting into our own urlbar.
Comment 19•24 years ago
|
||
Pav, when it tries UTF8_STRING first, is it actually asking the destination
program whether it supports UTF8_STRING? My concern is that UTF8_STRING is
relatively new, so there are still many programs out there that don't support
it. If we use UTF8_STRING without confirming that the destination program
supports it, then we could have problems.
Assignee | ||
Comment 20•24 years ago
|
||
No, that won't be a problem. If it returns no data to us when we ask for
UTF8_STRING, then we will ask for COMPOUND_TEXT, then STRING, etc until
(hopefully) we get something.
removing the need info
Whiteboard: [rtm+ need info] → [rtm+]
Comment 21•24 years ago
|
||
OK, thanks for the clarification. Yes, we should try UTF8_STRING first, then
COMPOUND_TEXT, and finally STRING. So, I agree with the patch. sr=erik
Comment 22•24 years ago
|
||
RTM double plus
Please land on branch asap.
The risk seems really low.. and pasting into the URL bar seems like a Good Thing
(TM) to get dead right.
Whiteboard: [rtm+] → [rtm++]
Comment 23•24 years ago
|
||
sr=blizzard
Assignee | ||
Comment 24•24 years ago
|
||
checked in fix on branch and trunk
Updated•24 years ago
|
Whiteboard: [rtm++] → [rtm++] checked in fix on branch and trunk
Assignee | ||
Comment 25•24 years ago
|
||
i meant to mark this fixed
Status: NEW → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 26•24 years ago
|
||
I've verified on:
win32, linux, and mac 2000-11-04-09 builds
Able to paste in "Netscape 6?s lack of Lightweight Directory Access Protocol
support, will be a deathblow to the browser?s corporate appeal." in both URL
field and here, in this bug report field. Also, tried the testcase.
verified for branch. marking vtrunk in keyword for blake to verify on trunk.
Keywords: vtrunk
Comment 27•24 years ago
|
||
hmmm... could this be a new problem now? After I posted, I see that the ' has
turned into a question mark (in my previous comments).
Comment 28•24 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•