Use fileSystemRepresentation instead of cString

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13612 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2002-05-08 23:19:22 +00:00
parent 1f611aa15a
commit 0dbc651a6e
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2002-05-09 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBundle.m
Use fileSystemRepresentation instead of cString to get the file
name to load.
2002-05-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTask.m: When launching under windoze, don't forget to

View file

@ -117,7 +117,8 @@ static NSString *library_combo =
const char *
objc_executable_location (void)
{
return [[_executable_path stringByDeletingLastPathComponent] cString];
return [[_executable_path stringByDeletingLastPathComponent]
fileSystemRepresentation];
}
static BOOL
@ -896,10 +897,11 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
{
path = _path;
}
object = bundle_object_name(path, object);
_loadingBundle = self;
_bundleClasses = RETAIN([NSMutableArray arrayWithCapacity: 2]);
if (objc_load_module([object cString],
if (objc_load_module([object fileSystemRepresentation],
stderr, _bundle_load_callback, NULL, NULL))
{
[load_lock unlock];