[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forced crash under macOS 14 due to internal threading
From: |
Tom |
Subject: |
Re: Forced crash under macOS 14 due to internal threading |
Date: |
Sat, 04 May 2024 02:34:04 +0000 |
> Can you report the issue to Apple, after having replaced the call
> to setlocale with a call to
>
> char namebuf[256];
> CFTypeRef value =
> CFPreferencesCopyAppValue (CFSTR ("AppleLocale"),
> kCFPreferencesCurrentApplication);
>
> and the call to gettext with a call to
>
> CFArrayRef prefArray = CFLocaleCopyPreferredLanguages ();
>
> ?
I've done so with a repro of:
```
#include <CoreFoundation/CoreFoundation.h>
#include <unistd.h>
int main() {
CFTypeRef value = CFPreferencesCopyAppValue(
CFSTR ("AppleLocale"),
kCFPreferencesCurrentApplication
);
if (fork() == 0) {
CFArrayRef prefArray = CFLocaleCopyPreferredLanguages();
}
}
```
Will report back if/when I receive a response.