Closed
Bug 39376
Opened 25 years ago
Closed 24 years ago
Implement versions of nsEscape et. al. that take PRUnichars
Categories
(Core :: XPCOM, defect, P3)
Core
XPCOM
Tracking
()
RESOLVED
INVALID
M18
People
(Reporter: waterson, Assigned: scc)
References
Details
(Whiteboard: [nsbeta2-])
...or nsStrings or somesuch.
Reporter | ||
Comment 1•25 years ago
|
||
I need this so I can re-write the nsHTTPIndex parser to be wide-string
compliant.
Assignee: dp → scc
Blocks: 28787
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → M18
Comment 2•24 years ago
|
||
Adding nsbeta2 to the keywords line for this bug as bug # 28787 (which depends
upon this one) is already nsbeta2+.
Keywords: nsbeta2
Assignee | ||
Comment 4•24 years ago
|
||
I'm working on this stuff right now. I'll be putting this with other conversion
routines that waterson and I discussed. I'll have this done by Thursday the 6th
and I'm updating the status whiteboard to reflect that.
Whiteboard: [nsbeta2+] → [nsbeta2+] [ETA: 6 July 2000]
Assignee | ||
Comment 5•24 years ago
|
||
OK, two problems:
(1) the existing |nsEscape| stuff is not as re-usable as I had hoped...
(2) I can make this stuff work with strings from the string hierarchy, but
the escape stuff really shouldn't be made to work on wide characters.
Certainly, the current table approach would no longer be appropriate.
But this escape scheme is really all about ASCII (see RFC 1738). I can
make this work on our UCS2 (or whatever it is) strings, but pretending
they are just ASCII. I mean think about it... any unicode character
outside the ASCII range would require 4 digits to encode, and that's not
in the spec.
I have to move out the ETA a little. But what is the answer to (2), above?
Chris? The only reason you could want this is because you want to work on
ostensibly ASCII strings that have been `widened' for some API expecting
|PRUnichar|s. If _that's_ the case, then this might be the wrong approach to
fixing the problem. The right approach would be to fix the chain of passing
these things around to keep then narrow longer. This escape stuff is only
appropriate for URLs ... which are supposed to be only (a small subset of) ASCII.
I know we've been having a debate about this, because somehow they got stored as
wide strings.
Are we really trying to put the fix in the right place?
Whiteboard: [nsbeta2+] [ETA: 6 July 2000] → [nsbeta2+] [ETA: 10 July]
Reporter | ||
Comment 6•24 years ago
|
||
Hrm. I'm now wondering if this bug was misguided. Since rjc is now working on
28787, you may want to ask him if he really needs this. I think he's changed the
file system parsing code to actually go directly to the file system rather than
through the nsHTTPIndex stream, so he may just be using nsIFile and
automagically get the platform encoding and stuff.
Comment 7•24 years ago
|
||
Bug # 28787 should probably refer strictly to FTP issues, so the nsEscape issue
is still valid to some degree, unfortunately.
Isn't the FTP code in Necko is sending UTF-8 ?
Assignee | ||
Comment 8•24 years ago
|
||
This is a valid bug, yes, bug probably not an nsbeta2+ bug. This is really
only a request for a shortcut, since equivalent functionality exists: convert
string to ASCII, escape it. This bug is really a feature request for a
shortcut, at its heart. I recommend making this bug not be nsbeta2+. Plus, I
still think the solution is wrong on its face and I want to talk you out of
it. Removing ETA (the MS conference has pretty effectively cut me off all
week) and recommending making this bug be not nsbeta2+.
Whiteboard: [nsbeta2+] [ETA: 10 July] → [nsbeta2+]
Per today's PDT mtg, moving from [nsbeta2+] to [nsbeta2-]
Scott...you are a wise man :-)
Whiteboard: [nsbeta2+] → [nsbeta2-]
Assignee | ||
Comment 10•24 years ago
|
||
OK, I think this bug is wrong on its face; and nobody is pushing hard against
that, so I'm now going to mark it invalid (see earlier comments for why). If you
disagree, you know what to do :-)
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•