Differences From Artifact [962451e814]:
- File src/OFLocale.m — part of check-in [23272e6d43] at 2022-11-24 00:21:15 on branch trunk — Rename OFURI to OFIRI (user: js, size: 15623) [annotate] [blame] [check-ins using]
To Artifact [efa00a7a3e]:
- File
src/OFLocale.m
— part of check-in
[8a459e4b5d]
at
2022-12-05 00:50:48
on branch trunk
— OFLocale: Default to codepage 437 on MS-DOS
If we cannot parse the codepage (e.g. because we don't support it), it's
better to fall back to codepage 437 than to UTF-8. (user: js, size: 15698) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | #ifndef OF_AMIGAOS char *locale, *messagesLocale = NULL; if (currentLocale != nil) @throw [OFInitializationFailedException exceptionWithClass: self.class]; _encoding = OFStringEncodingUTF8; _decimalSeparator = @"."; _localizedStrings = [[OFMutableArray alloc] init]; if ((locale = setlocale(LC_ALL, "")) != NULL) _decimalSeparator = [[OFString alloc] initWithCString: localeconv()->decimal_point encoding: _encoding]; | > > > > | 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | #ifndef OF_AMIGAOS char *locale, *messagesLocale = NULL; if (currentLocale != nil) @throw [OFInitializationFailedException exceptionWithClass: self.class]; # ifdef OF_MSDOS _encoding = OFStringEncodingCodepage437; # else _encoding = OFStringEncodingUTF8; # endif _decimalSeparator = @"."; _localizedStrings = [[OFMutableArray alloc] init]; if ((locale = setlocale(LC_ALL, "")) != NULL) _decimalSeparator = [[OFString alloc] initWithCString: localeconv()->decimal_point encoding: _encoding]; |
︙ | ︙ |