Comments (10)
Running $ toolbox run locale
on the host yields:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
(...)
It seems to inherent the host's locale, which is not the case when running $ locale
within a containerized shell session:
$ toolbox enter
⬢$ locale
LANG=C.UTF-8
LC_CTYPE="C.UTF-8"
(...)
While I am not certain whether it is a separate issue, installing glibc-langpack-en
or glibc-all-langpacks
fixes it for me. I'm on Fedora 31 Silverblue.
from toolbox.
Yes, I have heard of a similar oddity reported by Czech users too, but since locale
seemed to work fine for variants of en
(not just en_US
), I forgot about it.
Do you know how the glibc-langpack-fr
package gets installed on your Fedora host?
from toolbox.
Thanks to @halfline I understand this a little better.
It's likely that replacing glibc-minimal-langpack
with glibc-all-langpacks
will solve the most pressing issues:
# dnf -y swap glibc-minimal-langpack glibc-all-langpacks
I think that a complete fix would also involve removing /etc/rpm/macros.image-language-conf
and reinstalling all packages with missing translations. That would involve something similar to #55, which undoes the effects of tsflags=nodocs
.
from toolbox.
It would also be helpful to have a concrete test case that I can use to validate my experiments.
from toolbox.
A simpler fix or workaround for now might be just to run podman with LANG=C.utf8
.
That should fix most of the current problems I reckon.
Minimalist testcase is just to run locale
:
@toolbox ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=ja_JP.UTF-8
:
from toolbox.
I don't know if this is following up this issue or not, but in a recent toolbox, the locale is no longer preserved from the host. now I get the en_US.UTF-8
locale, no locale error, and the same vim issues as in #14 (except not running inside tmux)
from toolbox.
Currently toolbox only installs glibc-langpack-en
by default.
edit I think this is inherited from the fedora:30
image.
from toolbox.
In latest fedora:30 (and fedora:rawhide) glibc-langpack-en
was dropped.
eg this affects https://bodhi.fedoraproject.org/updates/FEDORA-CONTAINER-2019-724ac61633
Actually it looks to me the real problem is that fedora:30 /etc/locale.conf
has LANG="en_US.UTF-8"
:
assuming the above change is intentional.
We could workaround it with sed -e 's/en_US/C' /etc/locale.conf
.
from toolbox.
Okay it seems covered by https://bugzilla.redhat.com/show_bug.cgi?id=1727489
from toolbox.
Can confirm that installing glibc-langpack-en
or glibc-alll-langpacks
fixes this issue. Havee in mind that the later weigth about 200mb which is half's the container weigth.
from toolbox.
Related Issues (20)
- Failed to initialize container, AGAIN (Silverblue 39.20240408.0 (2024-04-08T01:47:01Z) HOT 2
- Build succeeded.
- List supported toolbox images
- Cannot access mounted drive with fuse outside of toolbox
- Xwayland broken in toolbox containers HOT 1
- Add distribution: Ubuntu 24.04 LTS HOT 2
- can't start ubuntu (useradd: UID is not unique) HOT 1
- systemd (255.6-1) breaks dependency
- Missing locales on Arch Linux guest HOT 3
- Can't resolve host `toolbox` inside `fedora-toolbox:40` container HOT 4
- Isolate $HOME directory via snapshot and overlay
- Can't enter fedora 40 toolbx: Failed to bind /etc/machine-id HOT 24
- run0 Allows execution on HOT 6
- Gstreamer unable to find plugins in toolbox
- Fish Shell Completions
- toolbox can't source path HOT 2
- Unable to run fzf through flatpak-spawn
- Fedora 39 Image doesn't build
- profile.d/toolbox.sh doesn't take into account TERMINFO_DIRS HOT 3
- Cannot get terminal window size inside toolbox via TIOCGWINSZ ioctl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolbox.