summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-10-29 13:05:09 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-10-29 13:05:09 +0200
commit521c4ceec3ec621540f2b49633c89c357dcc69d1 (patch)
tree8e44e02391cdf5d270d38644aec89d515780fdf9
parent3a684f667b9dc680ffde378850aab8ce32371a04 (diff)
downloaddevtools-521c4ceec3ec621540f2b49633c89c357dcc69d1.tar.gz
devtools-521c4ceec3ec621540f2b49633c89c357dcc69d1.tar.xz
makechrootpkg: Set the C locale system wide
makepkg sources /etc/profile before calling build(). This will change the locale from C to en_US.UTF8.
-rw-r--r--makechrootpkg.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 9794132..645992e 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -250,6 +250,9 @@ chown -R nobody "$copydir"/{build,pkgdest,srcdest}
echo 'nobody ALL = NOPASSWD: /usr/bin/pacman' > "$copydir/etc/sudoers.d/nobody-pacman"
chmod 440 "$copydir/etc/sudoers.d/nobody-pacman"
+# Set this system wide as makepkg will source /etc/profile before calling build()
+echo 'export LANG=C' > "$copydir/etc/locale.conf"
+
# This is a little gross, but this way the script is recreated every time in the
# working copy
cat >"$copydir/chrootbuild" <<EOF