Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2023482

Summary: Failed to set locale, defaulting to C.UTF-8
Product: Red Hat Enterprise Linux 8 Reporter: Michael Catanzaro <mcatanza>
Component: toolbox-containerAssignee: Debarshi Ray <debarshir>
Status: CLOSED DUPLICATE QA Contact: Petr Schindler <pschindl>
Severity: low Docs Contact: Gabriela Nečasová <gnecasov>
Priority: unspecified    
Version: 8.5CC: debarshir
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-04 00:52:03 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 Michael Catanzaro 2021-11-15 21:11:07 UTC
Using host system toolbox version: toolbox-0.0.99.2^3.git075b9a8d2779-4.fc35

I create a RHEL 8.5 container image and enter it:

$ toolbox create --image registry.access.redhat.com/ubi8/toolbox:8.5 ubi-toolbox-8.5
$ toolbox enter ubi-toolbox-8.5

Then in the container, I run:

⬢[mcatanzaro@toolbox ~]$ dnf --help

The first thing dnf prints is:

Failed to set locale, defaulting to C.UTF-8

I think this is because my host locale is en_US.UTF-8, and toolbx propagates the locale from the host system even though it does not exist in the container? Not sure what to do about that.

Comment 1 Debarshi Ray 2023-04-04 00:52:03 UTC

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

Comment 2 Debarshi Ray 2023-04-04 00:53:22 UTC
Try these within the image:
# rm /etc/rpm/macros.image-language-conf
# dnf -y swap glibc-minimal-langpack glibc-all-langpacks

This should be fixed for the toolbox:8.9 and toolbox:9.3 images.