maint: avoid effects of locale when sorting files

* maint/ioctls_gen.sh: Invoke sort with LC_COLLATE=C.
* maint/ioctls_hex.sh: Likewise.
* maint/ioctls_sym.sh: Likewise.

Reported-by: Philippe De Muyter <phdm@macqel.be>
diff --git a/maint/ioctls_gen.sh b/maint/ioctls_gen.sh
index d8da875..90d7c1f 100755
--- a/maint/ioctls_gen.sh
+++ b/maint/ioctls_gen.sh
@@ -90,7 +90,7 @@
 
 # Output all ioctl definitions fetched from include-directory.
 echo "/* Generated by $me from definitions found in ${inc_dir%%/}/ tree. */" > ioctls_inc.h
-sort -u ioctls_hex.h ioctls_sym.h >> ioctls_inc.h
+LC_COLLATE=C sort -u ioctls_hex.h ioctls_sym.h >> ioctls_inc.h
 msg "generated $(grep -c '^{' ioctls_inc.h) ioctls from $inc_dir"
 
 [ -n "$arch_dir" ] || exit 0
@@ -110,5 +110,5 @@
 
 # Output all ioctl definitions fetched from arch-include-directory.
 echo "/* Generated by $me from definitions found in ${arch_dir%%/}/ tree. */" > ioctls_arch.h
-sort -u ioctls_hex.h ioctls_sym.h >> ioctls_arch.h
+LC_COLLATE=C sort -u ioctls_hex.h ioctls_sym.h >> ioctls_arch.h
 msg "generated $(grep -c '^{' ioctls_arch.h) ioctls from $arch_dir"
diff --git a/maint/ioctls_hex.sh b/maint/ioctls_hex.sh
index 2e380b9..a798733 100755
--- a/maint/ioctls_hex.sh
+++ b/maint/ioctls_hex.sh
@@ -46,4 +46,4 @@
 done |
 	sed 's|^uapi/||' |
 	sed -n 's/^\([^:]*\):'"$regexp"'.*/{ "\1", "\2", 0, \3, 0 },/p' |
-	sort -u
+	LC_COLLATE=C sort -u
diff --git a/maint/ioctls_sym.sh b/maint/ioctls_sym.sh
index 19e0dda..d0298ed 100755
--- a/maint/ioctls_sym.sh
+++ b/maint/ioctls_sym.sh
@@ -78,7 +78,7 @@
 		exit 0
 cd - > /dev/null
 sed 's|^\./\(uapi/\)\?||' < "$tmpdir"/headers1.list > "$tmpdir"/headers.list
-sort -u -o "$tmpdir"/headers.list "$tmpdir"/headers.list
+LC_COLLATE=C sort -u -o "$tmpdir"/headers.list "$tmpdir"/headers.list
 
 msg "processing $(wc -l < "$tmpdir"/headers.list) header files from $inc_dir"
 failed=0