Differences From Artifact [a697442a34]:
- File src/OFString.m — part of check-in [a36ab7c79a] at 2023-04-16 17:27:22 on branch trunk — OFString: Fix using strtod_l despite uselocale (user: js, size: 65097) [annotate] [blame] [check-ins using] [more...]
To Artifact [9aebf03e60]:
- File src/OFString.m — part of check-in [a6f520157a] at 2023-08-08 15:32:43 on branch trunk — A few minor cleanups (user: js, size: 65170) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
614 615 616 617 618 619 620 | @implementation OFString + (void)initialize { if (self != [OFString class]) return; | | | 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 | @implementation OFString + (void)initialize { if (self != [OFString class]) return; object_setClass((id)&placeholder, [OFStringPlaceholder class]); #if defined(HAVE_STRTOF_L) || defined(HAVE_STRTOD_L) || defined(HAVE_USELOCALE) if ((cLocale = newlocale(LC_ALL_MASK, "C", NULL)) == NULL) @throw [OFInitializationFailedException exceptionWithClass: self]; #endif } |
︙ | ︙ | |||
799 800 801 802 803 804 805 | { return [[[self alloc] initWithContentsOfIRI: IRI encoding: encoding] autorelease]; } - (instancetype)init { | | > | 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 | { return [[[self alloc] initWithContentsOfIRI: IRI encoding: encoding] autorelease]; } - (instancetype)init { if ([self isMemberOfClass: [OFString class]] || [self isMemberOfClass: [OFMutableString class]]) { @try { [self doesNotRecognizeSelector: _cmd]; } @catch (id e) { [self release]; @throw e; } |
︙ | ︙ |