mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Minor fixes to NSCalendar and NSLocale. Also implemented NSCalendar's +currentCalendar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31819 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
798336be99
commit
797780c433
4 changed files with 27 additions and 11 deletions
|
@ -819,7 +819,7 @@ static NSRecursiveLock *classLock = nil;
|
|||
|
||||
localeId = [NSString stringWithUTF8String: cLocaleId];
|
||||
#else
|
||||
localeId = string;
|
||||
localeId = [NSLocale canonicalLocaleIdentifierFromString: string];
|
||||
#endif
|
||||
|
||||
[classLock lock];
|
||||
|
@ -933,7 +933,10 @@ static NSRecursiveLock *classLock = nil;
|
|||
|
||||
- (id) copyWithZone: (NSZone *) zone
|
||||
{
|
||||
return RETAIN(self);
|
||||
if (NSShouldRetainWithZone(self, zone))
|
||||
return RETAIN(self);
|
||||
else
|
||||
return NSCopyObject(self, 0, zone);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue