[php-src] PR #17168: Support musl gettext (libintl) functions in tests
| From: | orlitzky | Date: | Sun, 15 Dec 2024 18:04:46 +0000 |
| Subject: | [php-src] PR #17168: Support musl gettext (libintl) functions in tests | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30014@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17168
Author: orlitzky
Work around several musl quirks to get the test suite passing:
*
bindtextdomain(..., NULL) returns NULL rather than a default path if no
binding exists
* bind_textdomain_codeset(..., NULL) always returns NULL
* The gettext family of functions ignores any codeset suffixes on the directories that correspond to
locale names, e.g. only en_US works, and not en_US.UTF-8.
The commit messages go into more detail about each workaround. Copying the message data from
en_US.UTF-8 to en_US in ./configure is pretty hacky but it
gets the job done (suggestions for improvement are welcome).
Refs:
* https://github.com/php/php-src/issues/13696
* https://github.com/php/php-src/pull/13925