[tex-common] 01/01: set LANG=C before running fmtutil (Closes: #872012)
This is an automated email from the git hooks/post-receive script.
preining pushed a commit to branch master
in repository tex-common.
commit 3f553840ccb3b8869bc89ab07d97582fec24f6ad
Author: Norbert Preining <preining@debian.org>
Date: Thu Aug 17 14:39:38 2017 +0900
set LANG=C before running fmtutil (Closes: #872012)
---
debian/changelog | 7 +++++++
debian/postinst | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d5e3dd2..8146fac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tex-common (6.09) unstable; urgency=medium
+
+ * set LANG to C before running fmtutil, in case it is not set, otherwise
+ luatex might not build (Closes: #872012)
+
+ -- Norbert Preining <preining@debian.org> Thu, 17 Aug 2017 14:38:09 +0900
+
tex-common (6.08) unstable; urgency=medium
* remove Florent and Frank from the list of uploaders,
diff --git a/debian/postinst b/debian/postinst
index 16ddc46..37b5ea6 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -72,9 +72,13 @@ dhit_build_format ()
{
tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX)
+ # save LANG
+ LANGSAVE=$LANG
+ LANG=C
printf "Building format(s) $*.\n\tThis may take some time... "
if $FMTUTIL "$@" > $tempfile 2>&1 ; then
rm -f $tempfile
+ LANG=$LANGSAVE
echo "done."
else
exec >&2
@@ -260,8 +264,11 @@ run_hyphen()
export TEXMFVAR TEXMFCONFIG
tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX)
printf "Building latex-based formats --byhyphen language.dat.\n\tThis may take some time... "
+ LANGSAVE=$LANG
+ LANG=C
if $FMTUTIL --byhyphen language.dat > $tempfile 2>&1 ; then
rm -f $tempfile
+ LANG=$LANGSAVE
echo "done."
else
exec >&2
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/tex-common.git
Reply to: