scripts: make sure sort-order is independent from locale
[openwrt/openwrt.git] / scripts / ipkg-build
index 32bc4b6d503b6beb40d122ad2da037d3a68397d3..19df621048a62c554b691508747983b917529c8e 100755 (executable)
@@ -58,7 +58,7 @@ pkg_appears_sane() {
 
                rm "$CONTROL"/conffiles
                if [ -f "$CONTROL"/conffiles.resolved ]; then
-                       sort -o "$CONTROL"/conffiles "$CONTROL"/conffiles.resolved
+                       LC_ALL=C sort -o "$CONTROL"/conffiles "$CONTROL"/conffiles.resolved
                        rm "$CONTROL"/conffiles.resolved
                        chmod 0644 "$CONTROL"/conffiles
                fi