Open
Description
The latest PHP images based on Alpine Linux now use Alpine Linux v3.16.
In v3.16, Alpine Linux has split the ICU package in two: icu-data-en
and icu-data-full
.
Only the icu-data-en
package is now installed by default. The Alpine Linux changelog mentions this as well:
icu-libs only installs icu-data-en. If additional language support is required, icu-data-full needs to be installed manually.
# apk list | grep -i icu
icu-libs-71.1-r2 x86_64 {icu} (MIT ICU Unicode-TOU) [installed]
icu-data-en-71.1-r2 x86_64 {icu} (MIT ICU Unicode-TOU) [installed]
This results in the following code not working as expected:
<?php
echo locale_get_display_name('ja', 'ja');
This now yields the output Japanese
instead the expected 日本語
. Other locale-related methods will probably also be affected.
Would the Alpine-based PHP images want to include the icu-data-full
package by default? Or is this package expected/intended to be not installed by default?
See