From 96532708b49b3fdcfa77c1ddfc7f7053007ffdf6 Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Wed, 8 Mar 2017 15:02:37 -0600 Subject: [PATCH] extract_utils: Fix locale issue with sort * On some machines, LC_ALL=C is set, causing the sort order of makefiles to be different than those without this locale change that is set * Set LC_ALL=C on all machines for consistent ordering * From 'man sort': The locale specified by the environment affects sort order. Set LC_ALL=C to get the traditional sort order that uses native byte values. * Thanks to haggertk and rashed for verifying this for me Change-Id: I5bbb94b0dfe599a67036de4312e8af913e9b8d30 Signed-off-by: Paul Keith --- extract_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract_utils.sh b/extract_utils.sh index de45338..cea4219 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -595,7 +595,7 @@ function parse_file_list() { PRODUCT_COPY_FILES_HASHES+=("$HASH") fi - done < <(egrep -v '(^#|^[[:space:]]*$)' "$1" | sort | uniq) + done < <(egrep -v '(^#|^[[:space:]]*$)' "$1" | LC_ALL=C sort | uniq) } #