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)

PowerPC
Mac System 9.x
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: slogan, Assigned: dougt)

Details

Attachments

(2 files)

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
Attached patch Plugin DiffSplinter Review
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
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.
Patches look fine, r=sfraser
sr=darin
syd is testing on commercial
Syd, just update. I landed these changes this afternoon! :-)
I just verified this and it now works.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
QA Contact: tever → bbaetz
code level change. VERIFIED
Status: RESOLVED → VERIFIED
Hardware: PC → Macintosh
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: