aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Nikishaev <[email protected]>2019-01-17 10:16:19 +0400
committerAntonio Nikishaev <[email protected]>2019-02-19 20:57:21 +0400
commitfbaa9dbb0994d71e801e9fba8236887923aa0cf8 (patch)
treebd23506783e21b06c6607b059387abbc5cadf959
parent80b04507b0456a73f2f2f001691cadb4cb3958e8 (diff)
downloadotp-fbaa9dbb0994d71e801e9fba8236887923aa0cf8.tar.gz
otp-fbaa9dbb0994d71e801e9fba8236887923aa0cf8.tar.bz2
otp-fbaa9dbb0994d71e801e9fba8236887923aa0cf8.zip
Fix a particular sed invocation in otp_build
Otherwise sed cannot process `lib/common_test/test_server/configure.in` when run under UTF-8 locale. That file uses m4’s changequote(«, »)`, in latin-1.
-rwxr-xr-xotp_build2
1 files changed, 1 insertions, 1 deletions
diff --git a/otp_build b/otp_build
index 175c5fbcfe..376ea630b5 100755
--- a/otp_build
+++ b/otp_build
@@ -317,7 +317,7 @@ do_autoconf ()
echo "=== running autoconf in $d"
( cd "$d" && autoconf ) || exit 1
- chdr=`cat "$file" | sed -n "s|.*\(AC_CONFIG_HEADER\).*|\1|p"`
+ chdr=`cat "$file" | LC_CTYPE=C sed -n "s|.*\(AC_CONFIG_HEADER\).*|\1|p"`
[ "$chdr" = "AC_CONFIG_HEADER" ] || continue
echo "=== running autoheader in $d"
( cd "$d" && autoheader ) || exit 1