-
Notifications
You must be signed in to change notification settings - Fork 238
Need to set the locale. #45
Comments
@docbill Thanks for bringing it to my attention. I wasn't aware of that. Please do test and let's get that included if it indeed fixes the issue. |
Yes. It turns out this is really needed for all docker images. At first I tried just the postgresql docker image, but I found my processes connecting to the database from other containers would not use the same character encoding and have problems. Now all my docker images and all UTF8 characters are properly preserved. I'm just trying to figure out how to do a fork, as I've done other changes you might want to merge. |
This should be fixed by now, right? I think the Fedora base image uses |
Sorry, I guess that's irrelevant for an app container, because there's no boot process (systemd etc) to set LANG from /etc/locale.conf. |
Note that eventually we want to use C.UTF8 — see https://lists.stg.fedoraproject.org/archives/list/[email protected]/thread/44YDNSOM4KXUY63F336ZUD75XMR5HNHV/ |
I just learned the hardware, if you use this Dockerfile postgres will use the POSIX locale. That means all special characters will be mangled... I have added the line:
ENV LANG en_US.UTF-8
into my Dockerfile, but it will take a while to test if that really fixes the problem with non-English characters, long dashes, etc, as it take about 24 hours for my process to build a working database.
The text was updated successfully, but these errors were encountered: