Closed Bug 24603 Opened 25 years ago Closed 24 years ago

Asian characters appearing in ascii paste

Categories

(Core :: XUL, defect, P3)

Sun
Solaris
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: tor, Assigned: pavlov)

References

Details

Asian characters are spontaneously appearing when doing an ascii paste into
the URL bar.  Tested on a 1/19 build on solaris/native.  Steps to reproduce:

	* Type "http://www.w3.org/" into an xterm
	* Select that text to put it in the X clipboard
	* Start mozilla-bin
	* Wait for it to spin up
	* Paste (middle-click) on url bar text
	* A couple asian characters appear at the beginning of the url bar text

The debugger shows that in nsHTMLEditor::InsertText() the string consists
of non-ascii characters:

	aStringToInsert.ToNewCString() = 0x4d15b8 "........."

Going up the stack to nsHTMLEditor::Paste(), this is found:

	bestFlavor = 0x4d43b8 "text/unicode"

Note: this bug is mentioned in passing in #21119, which is for another
selection problem.  This bug was filed to provide more detail and to aid
in tracking.
Interestingly, for me, this happens IFF I'm attempting to paste into a URL bar
which currently contains characters.  If I clear out the URL bar first before
attempting to paste, the paste works.
*** Bug 30756 has been marked as a duplicate of this bug. ***
*IGNORE* - massive spam changing open XPToolkit bug's QA contact to
jrgm@netscape.com
QA Contact: paulmac → jrgm
I haven't seen this in a long time.  Is anyone else still seeing it?
Target Milestone: M16
Mass-moving all M16 non-feature bugs to M17, which we still consider to be 
part of beta2
Target Milestone: M16 → M17
I havn't seen this in a loooooong time and I've rewritten 99% of the clipboard
code to handle i18n issues so I don't expect this to be there any more.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.