Browse code

Calling localedef to define locale environment (bug 1661739)

Change-Id: I249d9b0f173096e7a883049f95206aacc1e7e0d7
Reviewed-on: http://photon-jenkins.eng.vmware.com/999
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George

nickshize authored on 2016/05/25 15:54:34
Showing 1 changed files
... ...
@@ -34,4 +34,10 @@ rpm --import /etc/pki/rpm-gpg/*
34 34
 #TODO: This should be removed, systemd should be able to create this file
35 35
 /usr/bin/touch /var/run/utmp
36 36
 #/sbin/locale-gen.sh
37
+
38
+#locale-gen.sh needs /usr/share/locale/locale.alias which is shipped with
39
+#  glibc-lang rpm, in some photon installations glibc-lang rpm is not installed
40
+#  by default. Call localedef directly here to define locale environment.
41
+/usr/bin/localedef -c -i en_US -f UTF-8 en_US.UTF-8
42
+
37 43
 exit 0