From b94177ebdeff379dbfc02d02b3768d3c561e62a7 Mon Sep 17 00:00:00 2001 From: Alastair Stuart Date: Tue, 19 Mar 2019 17:05:08 +0000 Subject: [PATCH] fix header processing on non en_US locales --- build-toolchain.bash | 2 +- prepare-headers.sh | 2 +- prepare-rincludes.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-toolchain.bash b/build-toolchain.bash index a1924b3311..dde29a7ae9 100755 --- a/build-toolchain.bash +++ b/build-toolchain.bash @@ -435,7 +435,7 @@ fi # SKIP_THIRDPARTY echo "Building host-based tools..." # Copy PEFBinaryFormat.h from Universal Interfaces, needed by MakePEF & MakeImport -(export LANG=en; sed 's/\r$//' < "$CINCLUDES/PEFBinaryFormat.h" | tr '\r' '\n' > "toolchain/include/PEFBinaryFormat.h") +(export LC_ALL=C; sed 's/\r$//' < "$CINCLUDES/PEFBinaryFormat.h" | tr '\r' '\n' > "toolchain/include/PEFBinaryFormat.h") mkdir -p build-host cd build-host diff --git a/prepare-headers.sh b/prepare-headers.sh index 4e9bc12e52..b920b7673b 100644 --- a/prepare-headers.sh +++ b/prepare-headers.sh @@ -2,7 +2,7 @@ IN=$1 OUT=$2 # Make Mac OS X's tr and sed not complain that the files are not UTF-8 -export LANG=en +export LC_ALL=C for file in $(cd $IN; ls *.h); do # Filter by file names. diff --git a/prepare-rincludes.sh b/prepare-rincludes.sh index 36e47f3d9e..0143861831 100644 --- a/prepare-rincludes.sh +++ b/prepare-rincludes.sh @@ -2,7 +2,7 @@ IN=$1 OUT=$2 # Make Mac OS X's tr and sed not complain that the files are not UTF-8 -export LANG=en +export LC_ALL=C # cp $IN/[A-Z]*.r $OUT/ for file in $(cd $IN; ls [A-Z]*.r); do