diff --git a/ChangeLog b/ChangeLog index 674b2098c..7c0e6b286 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-03-31 Richard Frith-Macdonald + + * Source/NSString.m: (isAbsolutePath) always treat a path beginning + with '/' as absolute except when in windows mode or on windows and + not in unix mode. + 2005-03-23 Richard Frith-Macdonald * config/pathxml.m4: Fix to get --with-xml-prefix= to work for diff --git a/Source/NSString.m b/Source/NSString.m index 747748f32..8b5d812b1 100644 --- a/Source/NSString.m +++ b/Source/NSString.m @@ -4412,6 +4412,12 @@ static NSFileManager *fm = nil; { return YES; // Begins with tilde ... absolute } +#if !defined(__MINGW__) + if (c == '/' && GSPathHandlingWindows() == NO) + { + return YES; // Begins with slash ... absolute on unix. + } +#endif root = rootOf(self, l); if (root > 0 && pathSepMember([self characterAtIndex: root-1])) {