[php-src] PR #16846: Make iconv //IGNORE behavior conform to POSIX and the docs

From: Date: Mon, 18 Nov 2024 15:14:00 +0000
Subject: [php-src] PR #16846: Make iconv //IGNORE behavior conform to POSIX and the docs
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29679@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16846 Author: orlitzky While working on https://github.com/php/php-src/pull/16840, I discovered that an old glibc bug workaround is causing our iconv() implementation to go against POSIX and its own docs. There is a very detailed commit message on the commit that removes the workaround, but in short: the workaround ignores invalid input sequences, when what it should have been doing is ignoring sequences that have no representation in the target encoding. But the need for a workaround is also not detected/applied correctly. (It would be nice if PHP could abstract the //IGNORE and //TRANSLIT magic away from the underlying iconv, but now that POSIX 2024 includes them, the smart thing to do is just wait.) Afterwards, there's a test that's testing for the incorrect output. We fix & rename it.

« previous php.git-pulls (#29679) next »