From 75ce3bbe9bfddedca688a41bb2c3c6e6e3a6bdf3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 9 Jun 2011 23:47:56 +0000 Subject: LANG=C; export LANG for non-bash git-svn-id: svn://tug.org/texlive/trunk@22898 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/tpic2pdftex/ChangeLog | 5 +++++ Build/source/utils/tpic2pdftex/tpic2pdftex | 8 ++++---- 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 + + * tpic2pdftex: LANG=C; export LANG for non-bash. + Report from Nelson, 9 Jun 2011 06:47:05. + 2010-12-29 Peter Breitenlohner * 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; } -- cgit v1.2.3