NSBundle.m: objc_executable_location(): A cast was obsuring a misuse of fileSystemRepresentation

NSFileManager.m: isExecutableFileAtPath: Added a comment
NSPropertyList.m: propertyListFromData:mutabilityOption:format:errorDescription: Don't call memcmp if the data is smaller than 8 bytes.
objc-load.m: mingw unicode
win32-load.h: mingw unicode
NSUserDefaultsWin32.m: Write defaults to registry as unicode strings, read in either unicode(REG_SZ) or ascii(REG_BINARY).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22782 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Jeremy Bettis 2006-04-12 19:52:10 +00:00
parent afcdd8bca1
commit 7d20644264
6 changed files with 71 additions and 14 deletions

View file

@ -255,10 +255,14 @@ static NSString *ExecutablePath()
/* This function is provided for objc-load.c, although I'm not sure it
really needs it (So far only needed if using GNU dld library) */
#ifdef __MINGW32__
const unichar *
#else
const char *
#endif
objc_executable_location (void)
{
return (const char*)[[ExecutablePath() stringByDeletingLastPathComponent]
return [[ExecutablePath() stringByDeletingLastPathComponent]
fileSystemRepresentation];
}