Closed Bug 23859 Opened 25 years ago Closed 25 years ago

Convert nsIRegistry to take wstring instead of string

Categories

(Core :: XPCOM, defect, P2)

All
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dveditz, Assigned: dveditz)

References

Details

(Whiteboard: [PDT+] 2/15)

The underlying registry stores in utf8, but people calling the API don't seem
to know that. Especially JS/XPConnect which does the wrong conversion for
"string" arguments. By making the API Unicode we know we can do the safe
conversion inside the nsIRegistry class.
Target Milestone: M13
Blocks: 23153
Target Milestone: M13 → M14
Too destabilizing to attempt in M13, need to do first thing in M14
Blocks: 11682
Keywords: beta1
Setting second tier M14 priorities
Priority: P3 → P2
Can you rely on the registry to do this XP?  Putting on PDT- radar for beta1.  
Would not hold for beta.  bobj, your thoughts any different?
QA Contact: dp → dveditz
Whiteboard: [PDT-]
Unicode -> UTF8 is a lossless mechanical bit re-arrangement, it's not a 
traditional character set conversion. This bug blocks creation of profiles when 
the name or directory contains 8-bit characters. E.g. Japanese or European 
users, Mac users with funny chars like that script "f" in their folder names, 
etc.
Cleared PDT- for reconsideration.
As dveditz points out, this would restrict profiles and pathnames (we also
have some resource URLs in the registry) to ASCII.
Whiteboard: [PDT-]
At present we are not able to test any of the profile manager functionalities 
due this limitation. This inturns makes it difficult for other components to use 
the profile service on the i18n systems. We should consider this implementation 
for beta as this means making the browser i18n friendly.

Making bug 15264 (making profile manager i18n compatible) dependent on this.
Blocks: 15264
Whiteboard: [PDT+]
Status: NEW → ASSIGNED
Adding gayatri to cc list.
I hope to get this checked in on 2/12 to give the profile manager team time to 
adapt to the new interface.
Whiteboard: [PDT+] → [PDT+] 2/15
Fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
The enumeration interface was not converted, the crucial one for the profile 
code
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Added the wstring apis to the enumerator objects as well.
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Gona have to trust you words on this one, unless you have a way for jimmylee to 
vefify.  Marking Verified.  Please reopen is a problem
Status: RESOLVED → VERIFIED
Cc'd msanz and teruko, so they can test with intl profile names/directories.
Component: XPCOM Registry → XPCOM
QA Contact: dveditz → xpcom
You need to log in before you can comment on or make changes to this bug.