mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
NSFileManager.m: Don't screw with slashes in -[NSFileManager fileSystemRepresentationWithPath:](mingw)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22784 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bc4fbce35e
commit
bafda5507c
1 changed files with 0 additions and 7 deletions
|
@ -1906,13 +1906,6 @@ static NSStringEncoding defaultEncoding;
|
|||
#if defined(__MINGW32__)
|
||||
- (const GSNativeChar*) fileSystemRepresentationWithPath: (NSString*)path
|
||||
{
|
||||
NSRange r;
|
||||
|
||||
r = [path rangeOfString: @"/"];
|
||||
if (r.length > 0)
|
||||
{
|
||||
path = [path stringByReplacingString: @"/" withString: @"\\"];
|
||||
}
|
||||
return
|
||||
(const GSNativeChar*)[path cStringUsingEncoding: NSUnicodeStringEncoding];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue