Planet does not set libc locale
kontsevoy opened this issue · 1 comments
kontsevoy commented
Problemo!
Planet image does not have libc locales configured. This means that every application will default to C
locale which means no UTF support.
To fix:
Install libc-locale package to the base image and configure it to UTF-8. To validate, the following should be possible when you're inside of Planet:
> locale
Output:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
kontsevoy commented
This bug should be closed by PR @29 with some reservations:
- A locale must actually be installed first. That PR does that by moving to Debian Docker image for RootFS, so
en_US.UTF-8
is installed by default. - A locale must also be set. This is usually done by setting environment variables for a process. That's something that packages need to do.