Print unicode filenames under mingw

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21432 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-07-08 11:59:41 +00:00
parent 7c4a87c2c0
commit 9b178f7c21
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-07-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/objc-load.m: Under mingw print filenames for debug using
%S rather than %s
2005-07-08 Richard Frith-Macdonald <rfm@gnu.org>
Recommit all gcc-4 changes ... I was unable to find a problem

View file

@ -105,9 +105,15 @@ objc_initialize_loading(FILE *errorStream)
dynamic_loaded = NO;
path = objc_executable_location();
#ifdef __MINGW__
NSDebugFLLog(@"NSBundle",
@"Debug (objc-load): initializing dynamic loader for %S",
path);
#else
NSDebugFLLog(@"NSBundle",
@"Debug (objc-load): initializing dynamic loader for %s",
path);
#endif
if (__objc_dynamic_init(path))
{
@ -170,8 +176,13 @@ objc_load_module (const char *filename,
_objc_load_callback = objc_load_callback;
/* Link in the object file */
#ifdef __MINGW__
NSDebugFLLog(@"NSBundle",
@"Debug (objc-load): Linking file %S\n", filename);
#else
NSDebugFLLog(@"NSBundle",
@"Debug (objc-load): Linking file %s\n", filename);
#endif
handle = __objc_dynamic_link(filename, 1, debugFilename);
if (handle == 0)
{