-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default locale is not UTF-8 #13
Comments
Here's why using C.UTF-8 as the default locale is beneficial:
To set the default locale to C.UTF-8 in your Docker image, you can use environment variables in your Dockerfile. Here's an example of how you might do this:
If you're having trouble switching to the C.UTF-8 locale inside Docker and need to run dpkg-reconfigure or other setup commands, it might be due to the environment not being fully interactive. In such cases, you can automate these setup commands in your Dockerfile to ensure that the desired configuration is applied consistently. However, if you find that these steps are causing complications or increasing the complexity of your Dockerfile, setting C.UTF-8 as the default locale from the beginning should help mitigate these issues. Keep in mind that setting the default locale to C.UTF-8 is generally a good practice for containers that handle text-based operations and want to ensure consistent behavior across various locales. |
By default, this image uses POSIX locale settings. Maybe it could be a goof idea to make e.g. C.UTF-8 default - which is also installed but I have troubles switching inside Docker to it, need to do dpkg-reconfigure, xterm setup etc. UTF-8 should be ok as default, or?
thx
best regards
1605200517
The text was updated successfully, but these errors were encountered: