Bug 1729454

Summary: Inconsistent locale configuration
Product: [Fedora] Fedora Container Images Reporter: Jan Pazdziora (Red Hat) <jpazdziora>
Component: baseAssignee: Clement Verna <clems.verna>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jpazdziora, petersen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-12 17:15:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Pazdziora (Red Hat) 2019-07-12 10:44:49 UTC
Description of problem:

The base image configures

  LANG="en_US.UTF-8"

but that locale is not installed.

Version-Release number of selected component (if applicable):

registry.fedoraproject.org/fedora   30                  47c865867d25        7 days ago          261 MB

How reproducible:

Deterministic.

Steps to Reproduce:
1. docker run --rm registry.fedoraproject.org/fedora:30 cat /etc/locale.conf
LANG="en_US.UTF-8"
2. docker run --rm registry.fedoraproject.org/fedora:30 locale -a

Actual results:

LANG="en_US.UTF-8"

C
C.utf8
POSIX

Expected results:

Either LANG="C.utf8", or en_US.utf8 installed.

Additional info:

This also results in warnings in situations like

$ docker run --rm -ti registry.fedoraproject.org/fedora:30 bash
[root@b2a38ce51596 /]# dnf install zsh
Failed to set locale, defaulting to C.UTF-8

Comment 1 Jan Pazdziora (Red Hat) 2019-07-12 10:45:02 UTC
I had to file this against version rawhide because bugzilla does not offer version 30. Please add the option of selecting version 30.

Comment 2 Jan Pazdziora (Red Hat) 2019-07-12 10:45:27 UTC
This is Fedora equivalent of UBI bug 1700675.

Comment 3 Clement Verna 2019-07-12 17:15:04 UTC
I think this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1727489, I have open PRs to fix that https://pagure.io/fedora-kickstarts/pull-request/540 and https://pagure.io/fedora-kickstarts/pull-request/541

*** This bug has been marked as a duplicate of bug 1727489 ***

Comment 4 Jens Petersen 2019-07-20 05:22:33 UTC
(In reply to Jan Pazdziora from comment #2)
> This is Fedora equivalent of UBI bug 1700675.

UBI is also switching to LANG=C.utf8 which is the correct modern way.

Comment 5 Jens Petersen 2019-07-20 05:31:58 UTC
(In reply to Clement Verna from comment #3)
> I have open PRs to fix that
> https://pagure.io/fedora-kickstarts/pull-request/540 and
> https://pagure.io/fedora-kickstarts/pull-request/541

Okay, sorry, this fix does look good to me at least.
Do images with these changes exist already?