Applied nsstring bugfix patch

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18529 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2004-02-02 14:46:48 +00:00
parent 24d6fe34b0
commit 7c4b85e3e2
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-02-02 Roland Schwingel <roland.schwingel@onevision.de>
* Source/NSString.m: ([stringByAbbreviatingWithTildeInPath]) fix bug
appending last path component.
([localizedNameOfStringEncoding:]) fix load of locliisation bundle.
2004-02-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Headers/Foundation/NSPropertyList.h:

View file

@ -2856,7 +2856,7 @@ handle_printf_atsign (FILE *stream,
Until we have it, just make sure that bundle
is initialized.
*/
ourbundle = [NSBundle gnustepBundle];
ourbundle = [NSBundle bundleForLibrary: @"gnustep-base"];
ourname = GetEncodingName(encoding);
return [ourbundle localizedStringForKey: ourname
@ -3517,7 +3517,7 @@ handle_printf_atsign (FILE *stream,
return @"~";
}
return [@"~" stringByAppendingPathComponent:
[self substringFromIndex: [homedir length] + 1]];
[self substringFromIndex: [homedir length]]];
}
/**