crazywhalecc / static-php-cli

Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
https://static-php.dev
MIT License
1.33k stars 233 forks source link

iconv fails with CP437 charset #513

Closed mpociot closed 3 months ago

mpociot commented 3 months ago

This error popped up with Laravel Herd and can be reproduced like this:

echo iconv('UTF-8', 'CP437', 'foo');

This results in: Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "CP437" is not allowed in php shell code on line 1

crazywhalecc commented 3 months ago

It's caused by libiconv build configure (missing --enable-extra-encodings). It will be added later.