Set LC_ALL and LANGUAGE. Suggested by samgee on #gnewsense.
authorlxoliva <lxoliva@559672b5-ba27-0410-b829-e8f1faed8b1b>
Sun, 22 Jul 2012 21:39:24 +0000 (21:39 +0000)
committerlxoliva <lxoliva@559672b5-ba27-0410-b829-e8f1faed8b1b>
Sun, 22 Jul 2012 21:39:24 +0000 (21:39 +0000)
git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@8763 559672b5-ba27-0410-b829-e8f1faed8b1b

deblob-check
deblob-main

index b2e21fe851c0221880c72d3a5069dabf80272055..f3e89e30186ce556278c67c9cec710d1332e0cf9 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# deblob-check version 2012-07-21
+# deblob-check version 2012-07-22
 # Inspired in gNewSense's find-firmware script.
 # Written by Alexandre Oliva <lxoliva@fsfla.org>
 
 # This makes it much faster, and mostly immune to non-ASCII stuff, as
 # long as a 8-bit-safe sed is used.  Probably a safe assumption these
 # days.
-case ${LANG+set} in set) LANG=C; export LANG;; esac
+LC_ALL=C; export LC_ALL
+LANGUAGE=C; export LANGUAGE
 
 rm="rm -f"
 
index 6ec8e69bf38d8e93475dd8e2a65eac941781fb5b..63d0c9325b51964b7742b3b1364c0204a5777ab1 100755 (executable)
@@ -74,6 +74,10 @@ case $1 in
 *) force=;;
 esac
 
+# We don't want e.g. diff output translations to affect us.
+LC_ALL=C; export LC_ALL
+LANGUAGE=C; export LANGUAGE
+
 mver=$1 extra=$2 sver=$3
 kver=$mver$sver gnu=gnu$extra
 deblob= dir=`echo "$0" | sed 's,[^/]*$,,;s,^$,.,;s,/*$,,'`