mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
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:
parent
a24cd9885d
commit
d252ff1a30
2 changed files with 10 additions and 2 deletions
|
@ -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>
|
2002-05-08 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSTask.m: When launching under windoze, don't forget to
|
* Source/NSTask.m: When launching under windoze, don't forget to
|
||||||
|
|
|
@ -117,7 +117,8 @@ static NSString *library_combo =
|
||||||
const char *
|
const char *
|
||||||
objc_executable_location (void)
|
objc_executable_location (void)
|
||||||
{
|
{
|
||||||
return [[_executable_path stringByDeletingLastPathComponent] cString];
|
return [[_executable_path stringByDeletingLastPathComponent]
|
||||||
|
fileSystemRepresentation];
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL
|
static BOOL
|
||||||
|
@ -896,10 +897,11 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
||||||
{
|
{
|
||||||
path = _path;
|
path = _path;
|
||||||
}
|
}
|
||||||
|
|
||||||
object = bundle_object_name(path, object);
|
object = bundle_object_name(path, object);
|
||||||
_loadingBundle = self;
|
_loadingBundle = self;
|
||||||
_bundleClasses = RETAIN([NSMutableArray arrayWithCapacity: 2]);
|
_bundleClasses = RETAIN([NSMutableArray arrayWithCapacity: 2]);
|
||||||
if (objc_load_module([object cString],
|
if (objc_load_module([object fileSystemRepresentation],
|
||||||
stderr, _bundle_load_callback, NULL, NULL))
|
stderr, _bundle_load_callback, NULL, NULL))
|
||||||
{
|
{
|
||||||
[load_lock unlock];
|
[load_lock unlock];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue