]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154048: Fix building the iconv codec on illumos/Solaris (GH-154049)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 19 Jul 2026 06:23:26 +0000 (09:23 +0300)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 06:23:26 +0000 (06:23 +0000)
commit33df37dd735777e69c5060c94ee348e89132c63d
treebacc7e1f3056f32e21eda82d97661b7c22fbd629
parent3c274d0c61d06b331d27223f0ed666b531008492
gh-154048: Fix building the iconv codec on illumos/Solaris (GH-154049)

iconv()'s input-buffer argument is declared "const char **" on some systems
(illumos/Solaris, old GNU libiconv) rather than the POSIX "char **", so passing
a "char **" failed to compile.  Cast it through void*, which converts to either
without a warning.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Objects/unicodeobject.c