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

Use unicode locale by default #115

Closed
nigredo-tori opened this issue Jul 3, 2018 · 0 comments · Fixed by #117
Closed

Use unicode locale by default #115

nigredo-tori opened this issue Jul 3, 2018 · 0 comments · Fixed by #117

Comments

@nigredo-tori
Copy link
Contributor

nigredo-tori commented Jul 3, 2018

At the moment the system (and, consequently, Postgres) uses a POSIX locale. This is problematic for users that use languages other than English. For example, I've created a database with default encoding, and that screwed up ILIKE in my queries way down the line.

I think that Unicode should be the default encoding in this image. Adding something like this to the Dockerfile should be enough:

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8 

UPD: see this SO answer for some explanation.
UPD2: The official PG image also uses UTF locale by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant