Closed Bug 281781 Opened 20 years ago Closed 20 years ago

the return value of WWW_GetWindowInfo is broken

Categories

(Core :: Internationalization, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: masayuki, Assigned: masayuki)

References

()

Details

(Keywords: intl)

Attachments

(1 file, 1 obsolete file)

Status: NEW → ASSIGNED
Attached patch Patch rv1.0 (obsolete) — Splinter Review
Attachment #173959 - Flags: review?(jshin1987)
Attached patch Patch rv1.1Splinter Review
Attachment #173959 - Attachment is obsolete: true
Attachment #173960 - Flags: review?(jshin1987)
Attachment #173959 - Flags: review?(jshin1987)
Comment on attachment 173960 [details] [diff] [review]
Patch rv1.1

r=jshin  

I'll file separate bugs on related issues :

We may be breaking things down the road as in the following:

http://lxr.mozilla.org/seamonkey/source/xpfe/bootstrap/nsNativeAppSupportWin.cp
p#2314

In addition, we would be better off using CF_UNICODETEXT instead of CF_TEXT
here and passing PRUnichar (On Win 9x/ME, we have to convert to the native
encoding and use CF_TEXT) 

http://lxr.mozilla.org/seamonkey/source/xpfe/bootstrap/nsNativeAppSupportWin.cp
p#1720

BTW, OS/2 code has the same issue.
Attachment #173960 - Flags: review?(jshin1987) → review+
It's more complex than I thought when I filed bug 282285. Until we make our
DDE-code Unicode-aware, we definitely need to get the patch here in.
Attachment #173960 - Flags: superreview?(bzbarsky)
Comment on attachment 173960 [details] [diff] [review]
Patch rv1.1

sr=bzbarsky
Attachment #173960 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 173960 [details] [diff] [review]
Patch rv1.1

The risk is low.
Attachment #173960 - Flags: approval1.8b?
Comment on attachment 173960 [details] [diff] [review]
Patch rv1.1

a=asa for checkin to 1.8b
Attachment #173960 - Flags: approval1.8b? → approval1.8b+
Jungshik:

Could you check-in the patch?
landed
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
This patch broke the Win32 seamonkey build.  The problem is that it uses
NS_CopyUnicodeToNative, which is implemented in xpcom_core.dll.  Unfortunately,
mozilla.exe does not link to xpcom_core.dll.  It is in fact loading XPCOM via
the glue stubs as a regular GRE client.  To solve this problem, I added code to
nsStringSupport.h that would in the #ifdef MOZILLA_STRICT_API case implement
NS_CopyUnicodeToNative in terms of NS_UTF16ToCString.  Please keep this in mind
if you are patching xpfe/bootstrap in the future.
Sorry for build bustage.
But I have been able to build on my system... why?
*** Bug 300770 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: