]> git.ipfire.org Git - thirdparty/curl.git/commit
idn: add native AppleIDN (icucore) support for macOS/iOS
authorMonkeybreadSoftware <support@monkeybreadsoftware.de>
Sun, 31 Mar 2024 09:55:27 +0000 (11:55 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 16 Apr 2024 22:24:09 +0000 (00:24 +0200)
commitadd22feeef07858307be5722e1869e082554290e
tree337ce66d23bc8faa2fd26012626cee5249f67942
parent08d10d2a0003d796467a17fce0d7857809b31d63
idn: add native AppleIDN (icucore) support for macOS/iOS

I implemented the IDN functions for macOS and iOS using Unicode
libraries coming with macOS and iOS.

Builds and runs here on macOS 14.2.1. Also verified to load and
run on older macOS version 10.13.

Build requires macOS SDK 13 or equivalent.

Set `-DUSE_APPLE_IDN=ON` CMake option to enable it.
With autotools and other build tools, set these manual options:
```
CPPFLAGS=-DUSE_APPLE_IDN
LIBS=-licucore
```

Completes TODO 1.6.

TODO: add autotools option and feature-detection.

Refs: #5330 #5371
Co-authored-by: Viktor Szakats
Closes #13246
.github/workflows/macos.yml
CMakeLists.txt
docs/TODO
lib/curl_config.h.cmake
lib/curl_setup.h
lib/idn.c
lib/idn.h
lib/version.c
tests/libtest/lib1560.c