DEV Community

Discussion on: Install Fedora 37 or earlier on Windows Subsystem for Linux (WSL)

Collapse
 
umineiro profile image
UMineiro • Edited

To be able to setup the locale within fedora you need systemd. To get around this you can use the following (substitute en, en_US with your locale strings):

dnf -y install glibc-common glibc-locale-source glibc-langpack-en
localedef --force -f UTF-8 -i en_US en_US.UTF-8
Enter fullscreen mode Exit fullscreen mode

Additionally, you may want to install your locale resources, sucha as:

dnf -y install langpacks-core-en_US langpacks-en_US man-pages-en_US
Enter fullscreen mode Exit fullscreen mode

And don´t forget to check and change if necessary /etc/locale.conf and /etc/locales.conf

Collapse
 
shashilx profile image
Roman Papusha

Tried to install first non-US locale and then en_US (en) locale - now it's ignore file /etc/locale.conf and always set en_US.UTF-8
Also command

export LANG=ru_RU.UTF-8

only affects to "locale -a" command and non-localize any other packages.

Collapse
 
bowmanjd profile image
Jonathan Bowman

Thanks for these tips! OK if I incorporate them into the article?

Collapse
 
umineiro profile image
UMineiro

Sure. Go ahead! Notice that I've edited the tip to add a last step.