Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Consider adding support for locale #527

Open
jdeathe opened this issue Jul 28, 2017 · 3 comments
Open

Consider adding support for locale #527

jdeathe opened this issue Jul 28, 2017 · 3 comments

Comments

@jdeathe
Copy link
Owner

jdeathe commented Jul 28, 2017

petems/docker-centos-7-ssh-locale#1

@jdeathe
Copy link
Owner Author

jdeathe commented Sep 11, 2017

PHP's setlocale command relies upon the system locale and this effects functions such as strftime and localeconv

@jdeathe
Copy link
Owner Author

jdeathe commented Sep 12, 2017

Ref: https://access.redhat.com/solutions/974273

The defaultAcceptEnv settings have not been removed from sshd_config so the following error is seen when running the locale command after connecting over SSH:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

@jdeathe
Copy link
Owner Author

jdeathe commented Sep 15, 2019

Now that the time zone settings have been moved to SYSTEM_TIMEZONE and split out of the bootstrap script it would make sense to include this at the same startup level.

The default to no locale, which saves on image size, but add an environment variable like SYSTEM_LOCALES that could be populated with a list of required locales. e.g. en_US|en_GB|fr_FR to require US + GB English and French.

Add a system-locale script used to setup the system with a limited set of locales.
Add a system-locale-wrapper script that to run via supervisord and returns the necessary details on first run with the --verbose parameter set.

@jdeathe jdeathe changed the title Consider use case for locale Consider adding support for locale Sep 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant