unescape relativePath

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36146 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-02-15 19:56:03 +00:00
parent e6ac9d4929
commit 2f975e0606
2 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,7 @@
* Source/NSPredicate.m: updates to output correct predicate format
for binary operators.
* Source/NSURL.m: unescape data for -relativePath
2013-02-10 Marcus Muller <znek@mulle-kybernetik.com>

View file

@ -1714,7 +1714,11 @@ static NSUInteger urlAlign;
if (myData->path != 0)
{
path = [NSString stringWithUTF8String: myData->path];
char buf[strlen(myData->path) + 1];
strcpy(buf, myData->path);
unescape(buf, buf);
path = [NSString stringWithUTF8String: buf];
}
return path;
}