Skip to content
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

Detect when running on a system without locales installed #212

Open
mwvaughn opened this issue Oct 22, 2019 · 0 comments
Open

Detect when running on a system without locales installed #212

mwvaughn opened this issue Oct 22, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mwvaughn
Copy link
Contributor

Some (Ubuntu, we're looking at you) systems don't set a reasonable locale and in fact default to ANSI_X3.4-1968, a fancy version of ascii. This is annoying since we can't actually resolve this deficiency by installing Python dependencies, as the C locales are missing entirely. This surfaces most often when people are containerizing a Python application.

A suggested solution is to just check python3 -c 'import sys; print(sys.stdout.encoding)' and see if it returns utf-8, failing with a helpful note about how to install locales.

@mwvaughn mwvaughn self-assigned this Oct 22, 2019
@mwvaughn mwvaughn modified the milestones: Release 1.0, Beta 2 Oct 22, 2019
@mwvaughn mwvaughn added the enhancement New feature or request label Oct 22, 2019
@mwvaughn mwvaughn modified the milestones: Beta, Alpha 3 Oct 23, 2019
@mwvaughn mwvaughn removed this from the Alpha 3 milestone Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant