Closed Bug 170317 Opened 22 years ago Closed 11 years ago

in nsCRLManager, does it matter if updateURL contains non-ASCII chars?

Categories

(Core Graveyard :: Security: UI, defect, P2)

Other Branch
x86
Linux
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: KaiE, Unassigned)

References

Details

(Whiteboard: [kerh-coz])

in nsCRLManager, in the call to pref->SetCharPref(), does it matter if updateURL
contains non-ASCII chars?
This bug was spawned from bug 169932.
Darin, can you please elaborate your concerns?
alec can probably speak best about the charset issues concerning SetCharPref. 
alec: what happens to non-ASCII characters passed into SetCharPref?  we just
store them as is, right?  if so, then don't we need to worry about what happens
if the user switches locales, or something like that?
ugh. SetCharPref should really only take ASCII, or at the most UTF8. But it
should not hold other charsets...its too bad we didn't have AUTF8String when we
froze this interface, or that is what we would have used.

you should use SetComplexPref() with an nsISupportsString if you need to store
unicode strings...but internally that will just convert it to utf8.
kai
Assignee: ssaux → kaie
Priority: -- → P2
Target Milestone: --- → 2.4
Assignee: kaie → nobody
Product: PSM → Core
Whiteboard: [kerh-coz]
changing obsolete psm* target to --- (unspecified)
Target Milestone: psm2.4 → ---
QA Contact: junruh → ui
nsCRLManager is gone.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.