* Source/NSBundle.m (_bundle_name_first_match): Remove path

extension when comparing name (fixes #10611)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20222 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2004-10-14 04:08:24 +00:00
parent 1edd85f95f
commit c2ed783573
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-10-13 Adam Fedor <fedor@gnu.org>
* Source/NSBundle.m (_bundle_name_first_match): Remove path
extension when comparing name (fixes #10611)
2004-10-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSXML.m: Fix bug escaping XML special chartacters.

View file

@ -211,7 +211,7 @@ _bundle_name_first_match(NSString* directory, NSString* name)
/* name might have a directory in it also, so account for this */
path = [[directory stringByAppendingPathComponent: name]
stringByDeletingLastPathComponent];
cleanname = [name lastPathComponent];
cleanname = [[name lastPathComponent] stringByDeletingPathExtension];
filelist = [[mgr directoryContentsAtPath: path] objectEnumerator];
while ((match = [filelist nextObject]))
{