Page MenuHomeDevCentral

Setting C.UTF-8 as default environment variable
ClosedPublic

Authored by Sandlayth on Oct 13 2016, 18:38.
Referenced Files
Unknown Object (File)
Wed, Nov 13, 05:43
Unknown Object (File)
Tue, Nov 12, 04:00
Unknown Object (File)
Tue, Nov 12, 02:24
Unknown Object (File)
Tue, Nov 12, 02:24
Unknown Object (File)
Tue, Nov 12, 00:56
Unknown Object (File)
Mon, Nov 11, 14:25
Unknown Object (File)
Mon, Nov 11, 14:25
Unknown Object (File)
Sat, Nov 2, 22:38

Diff Detail

Repository
rDPHPFPM Docker image for Nginx, php-fpm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Sandlayth retitled this revision from to Setting C.UTF-8 as default environment variable.
Sandlayth updated this object.
Sandlayth edited the test plan for this revision. (Show Details)
Sandlayth added a reviewer: dereckson.
dereckson requested changes to this revision.EditedOct 14 2016, 22:54
dereckson edited edge metadata.

Package locales should be installed before configure it.

$ docker build -t nasqueron/nginx-php-fpm .
Step 8 : RUN dpkg-reconfigure locales
 ---> Running in 182bfd144d01
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
dpkg-query: package 'locales' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: locales is not installed
The command '/bin/sh -c dpkg-reconfigure locales' returned a non-zero code: 1
This revision now requires changes to proceed.Oct 14 2016, 22:54
Sandlayth edited edge metadata.

Adding locales package.

dereckson edited edge metadata.
Build
$ docker build -t nasqueron/nginx-php-fpm .
[…]
Successfully built 25d2a92140ec
$ docker run --rm -it nasqueron/nginx-php-fpm bash
Container
$ echo $LANG
C.UTF-8
$ cat > /tmp/a
ééééé
$ file /tmp/a
/tmp/a: UTF-8 Unicode text
This revision is now accepted and ready to land.Oct 15 2016, 17:48
This revision was automatically updated to reflect the committed changes.