Closed
Bug 103384
Opened 23 years ago
Closed 23 years ago
Move Unicode conversion out of nsLocalFileCommon.cpp
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla0.9.7
People
(Reporter: ccarlen, Assigned: ccarlen)
References
Details
Attachments
(1 file)
(deleted),
patch
|
dougt
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
In order to start cutting xpcom's dependency on uconv, we should move all the
unicode conversion nsILocalFile routines in nsLocalFileCommon.cpp out into a
separate file in mozilla/xpcom/io. nsLocalFileMac.cpp aleady has code to do this
with OS routines but this code can't be used because of where the methods are
defined. If we split them out into another file, platforms which need it will
link with that file, and those that don't, won't.
As the other platforms implement the conversion natively, this file can can go away.
Assignee | ||
Comment 1•23 years ago
|
||
-> 0.9.6
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
Comment 2•23 years ago
|
||
Conrad, is this the same as http://bugzilla.mozilla.org/show_bug.cgi?id=100676
(which I haven't actually worked on)
Assignee | ||
Comment 3•23 years ago
|
||
It's a step towards that. The ultimate would be to eliminate all dependency on
unconv from nsIFile. Doing that all at once would be a tough task which would
require expertise on all platforms. This just makes it easier to divide and conquer.
Assignee | ||
Comment 4•23 years ago
|
||
Assignee | ||
Comment 5•23 years ago
|
||
The patch just moves the evil from one place to another - pretty simple. The new
files can be removed from the build a platform at a time and then retired when
the transition is complete.
pete, alec, can you r/sr?
Comment 6•23 years ago
|
||
Comment on attachment 56166 [details] [diff] [review]
patch
sr=alecf
Attachment #56166 -
Flags: superreview+
Assignee | ||
Comment 7•23 years ago
|
||
Doug - can I get r= on this?
Comment 8•23 years ago
|
||
Comment on attachment 56166 [details] [diff] [review]
patch
r=dougt if you remove tone down my old "E_V_I_L" comment.
also, do you really want to have a header file nsLocalFileUnicode.h? Why not just extern it in the one place you call it? (maybe a nit that won't stand up with our style guidelines, but I do not like a NS_* function defined in a header file)
Attachment #56166 -
Flags: review+
Comment 9•23 years ago
|
||
Comment on attachment 56166 [details] [diff] [review]
patch
r=dougt if you remove tone down my old "E_V_I_L" comment.
also, do you really want to have a header file nsLocalFileUnicode.h? Why not just extern it in the one place you call it? (maybe a nit that won't stand up with our style guidelines, but I do not like a NS_* function defined in a header file)
Assignee | ||
Comment 10•23 years ago
|
||
Alright - I'll get rid of your old E_V_I_L comment and just explain in nicer
terms why that code's there.
I had the same question about a header file which contained only one function.
But, since these files will only exist during a transition period and then be
removed, and since the current patch has r=/sr=, I'll stick with it.
Assignee | ||
Comment 12•23 years ago
|
||
Checked in. Let the conversion to native unicode handling begin.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•