Closed
Bug 262922
Opened 20 years ago
Closed 18 years ago
nsLocalFileWin's DirectoryEnumerator needs to use UTF16 functions if available
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: vlad, Assigned: vlad)
References
Details
Attachments
(1 file)
4.54 KB,
patch
|
Details | Diff | Splinter Review |
nsLocalFileWin's DirectoryEnumerator implementation is using PR_OpenDir and PR_ReadDir, which makes any non-ASCII characters in filenames be returned as '?' as it's calling FindFirstFile/FindNextFile internally. It needs to use PR_OpenDirUTF16/PR_ReadDirUTF16 if they don't return not implemented. This is causing import of IE bookmarks with non-ASCII characters in them to fail, e.g. bug 235495.
Assignee: file-handling → dougt
Component: File Handling → XPCOM
QA Contact: ian
Assignee | ||
Comment 1•20 years ago
|
||
Here's a first cut at a patch... of course, the problem is that we don't seem to build firefox with MOZ_UNICODE, so I'm kinda stuck here for fixing the depending bug...
Comment 2•20 years ago
|
||
vlad: yeah, there's a reason why MOZ_UNICODE is not defined. those APIs are experimental. see bug 239279 for all the gory details, and the solution that has been proposed.
Depends on: mzlu
Assignee | ||
Comment 3•20 years ago
|
||
Ugh. Any ideas for possible solutions to bug 235495 then? We're getting bogus data out of nspr right now.. I guess as a 1.0 bandaid, I can maybe do the function lookup for the unicode functions myself in nsIEProfileMigrator and use them directly instead of the enumerator, but that's getting rather gross. Not sure what else to do, though. (Also: attached patch has a bug; the Init method needs to use the right string, either GetPath or GetNativePath, instead of always using the Native method to get a CString.)
Updated•18 years ago
|
Assignee: dougt → nobody
QA Contact: xpcom
Comment 4•18 years ago
|
||
Was this fixed by bug 162361?
Comment 5•18 years ago
|
||
yes, it must have been.
Updated•13 years ago
|
Assignee: nobody → vladimir
You need to log in
before you can comment on or make changes to this bug.
Description
•