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/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep