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)
Tue, Dec 17, 09:58
Unknown Object (File)
Thu, Dec 12, 09:31
Unknown Object (File)
Wed, Dec 11, 14:21
Unknown Object (File)
Tue, Dec 10, 23:36
Unknown Object (File)
Tue, Dec 10, 23:36
Unknown Object (File)
Tue, Dec 10, 23:36
Unknown Object (File)
Tue, Dec 10, 23:20
Unknown Object (File)
Tue, Dec 10, 23:04

Diff Detail

Repository
rDPHPFPM Docker image for Nginx, php-fpm
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
master
Build Status
Buildable 1040
Build 1253: arc lint + arc unit

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.