Closed Bug 716333 Opened 13 years ago Closed 12 years ago

get rid of WithConversion (xpconnect part)

Categories

(Core :: XPConnect, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch fix (obsolete) — Splinter Review
      No description provided.
Attachment #586769 - Flags: review?(bobbyholley+bmo)
char*s are black boxes to the JS engine, so whether this patch is correct or not depends on where these strings come from, and whether those strings are UTF8, latin1, or something else. Have you done this analysis? Where do each of these strings originate?
(In reply to Bobby Holley (:bholley) from comment #1)
> char*s are black boxes to the JS engine, so whether this patch is correct or
> not depends on where these strings come from, and whether those strings are
> UTF8, latin1, or something else. Have you done this analysis? Where do each
> of these strings originate?

Don't this return UTF-8 even if localized version?  If so, I should use NS_ConvertASCIItoUTF16 instead of.
(In reply to Makoto Kato from comment #2)
> Don't this return UTF-8 even if localized version?  If so, I should use
> NS_ConvertASCIItoUTF16 instead of.

I'm not quite sure what you mean. The issue here is that we need to know the original encoding of these strings in order to determine whether to use NS_ConvertUTF8toUTF16 or NS_ConvertASCIItoUTF16. The JS doesn't specify the encoding for JSErrorReport::filename, for example, so we have to track down where that comes from.
Comment on attachment 586769 [details] [diff] [review]
fix

Cancelling review until comment 3 is sorted out.
Attachment #586769 - Flags: review?(bobbyholley+bmo)
Attached patch fixSplinter Review
Attachment #586769 - Attachment is obsolete: true
Attachment #607944 - Flags: review?(bobbyholley+bmo)
Attachment #607944 - Flags: review?(bobbyholley+bmo) → review+
Whiteboard: [inbound]
https://hg.mozilla.org/mozilla-central/rev/28cc6bf92f1f
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: