[Container-tools] Default locale in container environments
Nick Coghlan
ncoghlan at gmail.com
Mon Nov 23 06:23:55 UTC 2015
On 23 November 2015 at 16:10, Nick Coghlan <ncoghlan at gmail.com> wrote:
> (Posting here since this is a distro-independent problem, other
> changes in Fedora just make it most obvious there)
>
> In Fedora 23, a range of packages and utilities that previously ran
> under Python 2 have moved over to running under Python 3.
>
> This has exacerbated the known problem with containers defaulting to
> the ASCII centric C locale:
> https://github.com/fedora-cloud/docker-brew-fedora/issues/14
>
> Is there a recommended approach to building container images which
> have a sensibly set locale for all environments running on that image,
> whether via docker run or docker exec?
Sorry, I also meant to link to
https://bugzilla.redhat.com/show_bug.cgi?id=902094#c17, which suggests
defaulting to C.UTF-8 may be easier in Fedora 24+.
However, more Unicode friendly locales like en_US-UTF-8 exist in the
current cloud images, they're just not configured by default in the
absence of systemd running inside the container.
Regards,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Container-tools
mailing list