summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-06-09 23:47:56 +0000
committerKarl Berry <karl@freefriends.org>2011-06-09 23:47:56 +0000
commit75ce3bbe9bfddedca688a41bb2c3c6e6e3a6bdf3 (patch)
tree88b0492fbeab2623d49e49b1fd1be7b2647add3b /Build
parent04ed231819709131ee2d70794654ff754b6dea6b (diff)
LANG=C; export LANG for non-bash
git-svn-id: svn://tug.org/texlive/trunk@22898 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/utils/tpic2pdftex/ChangeLog5
-rwxr-xr-xBuild/source/utils/tpic2pdftex/tpic2pdftex8
2 files changed, 9 insertions, 4 deletions
diff --git a/Build/source/utils/tpic2pdftex/ChangeLog b/Build/source/utils/tpic2pdftex/ChangeLog
index ec69973f0db..6a91b176e4a 100644
--- a/Build/source/utils/tpic2pdftex/ChangeLog
+++ b/Build/source/utils/tpic2pdftex/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-10 Karl Berry <karl@tug.org>
+
+ * tpic2pdftex: LANG=C; export LANG for non-bash.
+ Report from Nelson, 9 Jun 2011 06:47:05.
+
2010-12-29 Peter Breitenlohner <peb@mppmu.mpg.de>
* configure.ac: Version 1.97 (as in tpic2pdftex).
diff --git a/Build/source/utils/tpic2pdftex/tpic2pdftex b/Build/source/utils/tpic2pdftex/tpic2pdftex
index 8277e0d3c7b..cce1c25323d 100755
--- a/Build/source/utils/tpic2pdftex/tpic2pdftex
+++ b/Build/source/utils/tpic2pdftex/tpic2pdftex
@@ -20,7 +20,7 @@
# Bounding box does not care for line thickness (groff pic feature).
# Splines might be outside bounding box.
#
-# Copyright (C) 2002--2010 by Hartmut Henkel
+# Copyright (C) 2002--2011 by Hartmut Henkel
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -114,7 +114,7 @@ if test -z "$AWK"; then # if set by user, leave it.
fi
fi
-export LANG="C"
+LANG="C"; export LANG
AWKPROG='
# begin of awk input file
@@ -161,10 +161,10 @@ BEGIN{
pi = atan2(0, -1);
if (match(sprintf("%f", 0.5), /\./) == 0) {
print "ERROR: Floating point numbers miss decimal point. Do"
- print " export LANG=\"C\""
+ print " LANG=\"C\"; export LANG"
print "before calling awk."
print "ERROR: Floating point numbers miss decimal point. Do" > "/dev/stderr"
- print " export LANG=\"C\"" > "/dev/stderr"
+ print " LANG=\"C\; export LANG"" > "/dev/stderr"
print "before calling awk." > "/dev/stderr"
exit 1;
}