bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resource for Tools are not found on Windows


From: David Ayers
Subject: Re: Resource for Tools are not found on Windows
Date: Wed, 25 Feb 2004 11:17:17 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

Wim Oudshoorn wrote:
Wim Oudshoorn <woudshoo@xs4all.nl> writes:

------------------------------------------------------------------------

*** base/Source/NSBundle.m      2003/06/20 15:02:27     1.1.1.2
--- base/Source/NSBundle.m      2003/06/20 15:07:53     1.3
***************
*** 780,786 ****
           the executable name here - just in case it turns out it's a
           tool.  */
        NSString *toolName = [_executable_path lastPathComponent];
! /* Strip off the name of the program */
        path = [_executable_path stringByDeletingLastPathComponent];
--- 780,789 ----
           the executable name here - just in case it turns out it's a
           tool.  */
        NSString *toolName = [_executable_path lastPathComponent];
! #if defined(__WIN32__)
!       toolName = [toolName stringByDeletingPathExtension];
! #endif
! /* Strip off the name of the program */
        path = [_executable_path stringByDeletingLastPathComponent];

AFAIK __WIN32__ is the only plattform that uses the path extension on executables... But even if not, if -make removes it for Windoze, then I take it (but didn't check) it would do it for any other plattform that has path extensions on executables. So I'm wondering whether we should unconditionally remove the path extension...

Cheers,
David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]