fix header processing on non en_US locales

This commit is contained in:
Alastair Stuart 2019-03-19 17:05:08 +00:00
parent b99f252a27
commit b94177ebde
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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.

View File

@ -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