Add newer features for NSDateComponents and

started to clean up NSCalendar implementation.
This commit is contained in:
fredkiefer 2020-04-26 21:13:22 +02:00
parent 4fe6cb20a1
commit a48694941c
4 changed files with 229 additions and 175 deletions

View file

@ -627,6 +627,11 @@ static NSRecursiveLock *classLock = nil;
[[dict objectForKey: NSLocaleCollationIdentifier] UTF8String];
const char *currency = [[dict objectForKey: NSLocaleCurrencyCode] UTF8String];
if (!calendar)
{
calendar = [[dict objectForKey: NSLocaleCalendarIdentifier] UTF8String];
}
// A locale cannot be constructed without a language.
if (language == NULL)
return nil;