[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #13175] [NSTask launch] doen't work on Windows
From: |
anonymous |
Subject: |
[bug #13175] [NSTask launch] doen't work on Windows |
Date: |
Tue, 24 May 2005 16:03:09 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/85.7 (KHTML, like Gecko) Safari/85.5 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13175>
Summary: [NSTask launch] doen't work on Windows
Project: GNUstep
Submitted by: None
Submitted on: Tue 05/24/2005 at 12:03
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
Hi,
Here are 2 snippets out of NSTask.m
[snip]
/**
* Returns the standard input stream for the task - an NSFileHandle
* unless an NSPipe was passed to -setStandardInput:
*/
- (id) standardInput
[/snap]
[snip out of [NSConcreteWindowsTask launch]]
start_info.hStdInput = [[self standardInput] nativeHandle];
[/snap]
This, of couse, doesn't work. There's no [NSPipe nativeHandle] method.
Patch should look somehow like this (take a look at [NSConcreteUnixTask
launch]):
if ([hdl isKindOfClass: [NSPipe class]])
{
hdl = [hdl fileHandleForReading];
// make sure to close close it
}
start_info.hStdInput = [hdl nativeHandle];
regards
Marc
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13175>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #13175] [NSTask launch] doen't work on Windows,
anonymous <=