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:
FredKiefer 2002-05-08 23:19:22 +00:00
parent a24cd9885d
commit d252ff1a30
2 changed files with 10 additions and 2 deletions

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];