From b2bf9a337a8f36ee76e580979c42376838f3a55a Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Wed, 14 Aug 2013 14:27:26 -0500 Subject: [PATCH] bug: perl/apt-get set an initial/default locale en_US.UTF-8 Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- build_image.sh | 2 +- scripts/chroot.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build_image.sh b/build_image.sh index 003f865e1..be54ca7c0 100755 --- a/build_image.sh +++ b/build_image.sh @@ -263,7 +263,7 @@ chroot_COPY_SETUP_SDCARD="enable" dpkg_arch="armhf" #DEFAULT_RELEASES="quantal raring saucy wheezy jessie" -DEFAULT_RELEASES="quantal raring wheezy jessie" +DEFAULT_RELEASES="wheezy jessie" for REL in ${RELEASES:-$DEFAULT_RELEASES} ; do ${REL}_release done diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 51df4a1b1..b985e339d 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -312,13 +312,19 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ install_pkgs () { #These packages have binaries needed by this script. - packages="initramfs-tools git-core sudo u-boot-tools wget" + packages="initramfs-tools locales git-core sudo u-boot-tools wget" for pkg in \${packages} ; do check_n_install ; done #Install the user choosen list. apt-get -y --force-yes install ${base_pkg_list} } + set_locale () { + echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen + locale-gen + echo "LANG=en_US.UTF-8" > /etc/default/locale + } + dl_pkg_src () { mkdir -p /tmp/pkg_src/ cd /tmp/pkg_src/ @@ -472,6 +478,7 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ install_pkg_updates install_pkgs + set_locale if [ "x${chroot_ENABLE_DEB_SRC}" = "xenable" ] ; then dl_pkg_src -- GitLab