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)
- rebuild boost for Python 3.12 HOT 1
- Switch to wine bi-weekly releases instead of stable
- Website download broken. HOT 10
- EFI partition scheme is too small - CL installer HOT 1
- Mesa with Nouveau Vulkan Drivers and Rustc update HOT 2
- PyQt6 6.6.1 -> 6.7 HOT 1
- Cannot update beyond 41380 HOT 1
- Unable to boot iso on amd cpu [Solution] HOT 1
- libavcodec.so crashes with AAC audio file (vlc, mplayer, etc)
- iwlwifi firmware: WRT: Invalid buffer destination HOT 1
- Podman 4.9.3 --> 5.1.1 HOT 1
- RDP Sharing or RDP Virtual SessionDoes Not Connect with Working Session (Build 41900)
- Building and clr-installing legacy releases having no ISOs HOT 7
- mold HOT 1
- Fastfetch HOT 2
- Pacman package changed and needs now "netavark" but is not provided HOT 3
- Broken python package: `ModuleNotFoundError: No module named '_lzma'` HOT 1
- OpenSSH update HOT 2
- Provide PyQt6 files in a bundle HOT 1
- fd HOT 4
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.