locale_get_display_name does not work as expected by default in Alpine Linux 3.16 based PHP images
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, dockerfile, php
- Domain
- devops, infrastructure
Research direction
Start with the Alpine-based PHP image definitions and the APK packages they install. Reproduce locale_get_display_name('ja', 'ja') in an Alpine 3.16-based PHP image, then verify the selected package behavior and document or implement the maintainer-approved default for full ICU locale data.
Written by the indexing model from the issue text.
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
- Dominant language
- Dockerfile
- Stars
- 4k
- Forks
- 2k
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker-library/php
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
docker-library/php#1674 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
docker-library/php#1680 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
docker-library/php#1675 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
docker-library/php#1673 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
docker-library/php#1631 · 9 comments · 6 reactions ·
All issues in docker-library/php
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
oblt-aw/detector/security
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
trailofbits/skills#330 ·
-
Bug kind/engineering pulumi/pulumi-external Workflow Failure
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pulumi/pulumi-external#733 ·