mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
fixup path validation on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23252 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1f20d2a4d9
commit
32b9892e7b
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2006-08-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTask.m: Fixup for path validation error on mingw32
|
||||
|
||||
2006-08-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source\GSStream.m:
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
|
||||
<title>NSTask class reference</title>
|
||||
$Date$ $Revision$
|
||||
|
@ -813,6 +814,12 @@ pty_slave(const char* name)
|
|||
}
|
||||
lpath = [lpath stringByStandardizingPath];
|
||||
}
|
||||
#ifdef __MINGW32__
|
||||
/** We need this to be native windows format, and some of the standardisation
|
||||
* above may have left unix style separators in the string.
|
||||
*/
|
||||
lpath = [lpath stringByReplacingString: @"/" withString: @"\\"];
|
||||
#endif
|
||||
return lpath;
|
||||
}
|
||||
|
||||
|
@ -1102,6 +1109,7 @@ quotedFromString(NSString *aString)
|
|||
[args appendString: quotedFromString(arg)];
|
||||
}
|
||||
|
||||
NSLog(@"ARGS: %@", args);
|
||||
w_args = NSZoneMalloc(NSDefaultMallocZone(),
|
||||
sizeof(wchar_t) * ([args length] + 1));
|
||||
[args getCharacters: (unichar*)w_args];
|
||||
|
|
Loading…
Reference in a new issue