Comments (15)
Also, for reference, the available locale data from glibc are stored in /usr/share/i18n/locales/
. You'll see that en_DE
is not present, so trying to localedef -i en_DE ...
does not work.
However, you are always free to create locale data for en_DE
, and then define a new locale using that data:
- Copy a locale data file from
/usr/share/i18n/locales
to use as a starting point for your new locale. You can store it anywhere, e.g./usr/local/share/en_DE
. - Modify
/usr/local/share/en_DE
as needed. - Run
localedef -i /usr/local/share/en_DE -f UTF-8 en_DE.UTF-8
- Set
LANG=en_DE.UTF-8
in/etc/locale.conf
- Log out / log back in
from distribution.
en_DE
is pertinently incorrect though, there's no such thing as german english
.
I'm not yet sure what needs to be done to be able to get more locales though, yet.
from distribution.
from distribution.
Supposedly its fixed this way:
fix
The problem is that from windows en_DE is valid, aka english language and german date/time format. The fix uses locale-gen/localedef
to generate and remap, which i cant find in clearlinux.
from distribution.
@matthewrsj can you look into adding localedef
from distribution.
/usr/bin/localedef
is already provided by both the c-basic
and os-core-dev
bundles.
from distribution.
@matthewrsj is correct. The localedef
program is provided by two bundles, as discovered by running sudo swupd search /usr/bin/localedef
.
@Andy2244 There are many locales you can define, but of out the box, the only defined locale is en_US.UTF-8
. I recommend to define the locales you need using localedef
, and set them using localectl set-locale ...
from distribution.
After further tests, localectl set-locale ...
appears buggy, so you can modify /etc/locale.conf
directly instead. For example, here's how you can define and set the fr_FR.UTF-8 locale:
sudo localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
sudo sh -c 'echo LANG="fr_FR.UTF-8" > /etc/locale.conf'
For settings to take effect, log out and log back in.
from distribution.
Is this something we need to include in a more logical bundle? like, sysadmin-basic
? Having it in c-basic
and os-core-dev
is missing the point I think
from distribution.
Having it in c-basic and os-core-dev is missing the point I think
yeah that's really "strange"
I never had this particular problem on any of the "big" linux distro, so something seems off regarding clear-linux.
from distribution.
@ahkok localedef
is provided by glibc
which is why it is in those particular bundles. Do we want to add glibc
to sysadmin-basic
? Seems like a weird fit. Maybe a new locale-focused bundle?
from distribution.
Well it sits in glibc-locale currently (per the spec). It has a note mentioning spit on the section though. I'm pretty happy to add glibc-locale to sysadmin-basic. @phmccarty do you think opening an issue for localectl would make sense too?
from distribution.
Oki as noticed "en_DE.UTF-8" does not exist in the default linux world, strangely enough most distro's with a GUI setup, let me setup English language and German formats/time, similar to what Windows does.
So i just did localedef -i en_DK -f UTF-8 en_DE.UTF-8
, since DK formats are similar and exists.
I'm closing this, since it seems linux in general deems it "strange" that this combination exists, while windows does not. So its not the fault of clear-linux, however "locale-gen/localedef" should exist in the same basic admin/locales package, both handle advanced locales.
from distribution.
As of the 22210 release, localedef
is now present in the sysadmin-basic
bundle, along with all of the locale data from /usr/share/i18n/.
from distribution.
from distribution.
Related Issues (20)
- Add bundle "Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver" HOT 1
- Bundle add "heaptrack - a heap memory profiler for Linux"
- Possible python3 pkg-config regression
- "File that should be deleted: /root" when updating to 41340 ? HOT 8
- SDDM Breeze Theme Shows Errors HOT 4
- Polkit update patch to v124
- missing Qt5 qmake binary HOT 3
- mono 5.12.0.226 to 6.12.0.206
- Many "Error: Curl - Failure receiving data from server" when updating from 41370 to 41400. HOT 12
- Remote Login settings grayed out HOT 5
- Live Desktop on USB stick boots so slowly that I gave up HOT 6
- Current kernels don't boot any longer on bare metal installations. HOT 6
- GNOME devs fixed mutter 46.0 sync issue for NVIDIA graphics HOT 12
- Revert Blender, OBS-Studio, Krita, sshfs removal HOT 1
- bemenu: empty package HOT 1
- Need to update BUG_REPORT_URL in /etc/os-release HOT 1
- `tecla` can't show Arabic keyboard layout
- SDDM does not work, CL version 41540 HOT 1
- CL 41570, 41580 performance regression HOT 6
- Recent system update to version 41580 breaks theme and designated desktop icons for mounted volumes not displayed HOT 8
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 distribution.