[php-src] Issue #8308: The return value of mb_list_encodings() doesn't contain 'SJIS-win'
| From: | cmb69 | Date: | Wed, 06 Apr 2022 10:35:44 +0000 |
| Subject: | [php-src] Issue #8308: The return value of mb_list_encodings() doesn't contain 'SJIS-win' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240700@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8308
Comment Author: cmb69
SJIS-win is only an alias of CP932 as of PHP 8.1.0
(https://3v4l.org/bF8G4). I think we should document this change, but not revert it.
> Some libraries have functions which receive one or more encoding names as arguments, and they
> often validate the input by the return value of mb_list_encodings().
These libraries probably should also check mb_encoding_aliases() (something like https://www.php.net/manual/en/function.mb-list-encodings.php#122266).