Closed
Bug 73169
Opened 24 years ago
Closed 24 years ago
NS_NewLocalFileOutputStream is not working on Mac this case
Categories
(Core :: Networking: File, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: slogan, Assigned: dougt)
Details
Attachments
(2 files)
|
4.47 KB,
patch
|
Details | Diff | Splinter Review | |
|
566 bytes,
patch
|
Details | Diff | Splinter Review |
This always fails, regardless of new file or replace:
nsCOMPtr<nsIOutputStream> outStream;
rv = NS_NewLocalFileOutputStream(getter_AddRefs(outStream),
file, PR_CREATE_FILE | PR_WRONLY | PR_TRUNCATE, 0644);
if ( NS_FAILED(rv) ) {
works fine on Linux, Windows. The "file" argument is:
nsISupports *pFile
nsCOMPtr<nsIFile> file(do_QueryInterface(pFile, &rv));
if(NS_FAILED(rv))
return rv;
pFile was returned by nsIFilePicker
| Assignee | ||
Comment 1•24 years ago
|
||
| Assignee | ||
Comment 2•24 years ago
|
||
| Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
| Assignee | ||
Comment 3•24 years ago
|
||
My posting in the xpcom ng:
The nsIInputStream and nsIOutputStream implementations in XPCOM are going to be
renamed from nsIFileInputStream and nsIFileOutputStream to
nsIFileSpecInputStream and nsIFileSpecOutputStream repectively. Also, the IDL
name will be renamed to match.
This will be done because there are a few places where one need to include both
of these implementions. The result is undefined as to which interface you will
get (or at least on the mac).
----
sfraser, can you r= these two patches.
scott, can you sr= these two patches.
Comment 4•24 years ago
|
||
Patches look fine, r=sfraser
Comment 5•24 years ago
|
||
sr=darin
| Assignee | ||
Comment 7•24 years ago
|
||
Syd, just update. I landed these changes this afternoon! :-)
| Assignee | ||
Comment 8•24 years ago
|
||
I just verified this and it now works.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•