Arch-WSL icon indicating copy to clipboard operation
Arch-WSL copied to clipboard

About locale

Open jinzhongjia opened this issue 2 years ago • 5 comments

First of all, thank you for allowing us to use archlinux in wsl.

The default locale is 'C.UTF-8', we can easily set it to 'en-US.UTF-8' through editing locale.gen and running command locale-gen, but other language will meet an error, just like chinese:

Generating locales...
  en_US.UTF-8... done
  zh_CN.UTF-8...[error] cannot open locale definition file `zh_CN': No such file or directory

However, after reinstalling glibc, it works!

why? Is this because the glibc that comes with the docker version of archlinux has been streamlined?

Maybe we can add a description to the readme.

jinzhongjia avatar Oct 13 '23 12:10 jinzhongjia

seems like it is a docker image issue https://bbs.archlinux.org/viewtopic.php?id=253198

vineelsai26 avatar Oct 13 '23 13:10 vineelsai26

will see what I can do to fix it

vineelsai26 avatar Oct 13 '23 13:10 vineelsai26

That seems default docker image is heavily stripped

jinzhongjia avatar Oct 13 '23 13:10 jinzhongjia

Hey, any progress in that topic?

I have an arch wsl installed that i have made using the docker image and have the same issue. Was thinking about building an image myself when i found this repo.

bardourbano avatar Aug 19 '24 14:08 bardourbano

Hey, any progress in that topic?

I have an arch wsl installed that i have made using the docker image and have the same issue. Was thinking about building an image myself when i found this repo.

just reinstall glibc, everything will work, docker container a mini glibc

jinzhongjia avatar Aug 19 '24 14:08 jinzhongjia