[PATCH] gen_build_files: Use C locale when calling sed on globbed files

Khem Raj raj.khem at gmail.com
Thu May 6 17:37:00 UTC 2021


sort order is different based on chosen locale and also default shell
being bash or dash

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 scripts/gen_build_files.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh
index 92de681ac..283e03837 100755
--- a/scripts/gen_build_files.sh
+++ b/scripts/gen_build_files.sh
@@ -67,7 +67,7 @@ generate()
 }
 
 # (Re)generate include/applets.h
-sed -n 's@^//applet:@@p' "$srctree"/*/*.c "$srctree"/*/*/*.c \
+LC_ALL= LC_COLLATE=C sed -n 's@^//applet:@@p' "$srctree"/*/*.c "$srctree"/*/*/*.c \
 | generate \
 	"$srctree/include/applets.src.h" \
 	"include/applets.h" \
-- 
2.31.1



More information about the busybox mailing list