summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Oliva <lxoliva@fsfla.org>2012-07-22 21:39:24 +0000
committerAlexandre Oliva <lxoliva@fsfla.org>2012-07-22 21:39:24 +0000
commitbaf2b0b8d7792c87b01bac8fba4ef4e480523a6a (patch)
treef46805623394defd43975a8ff2feae1bf36bec13
parent865b917c0db2261b0630fd71ee3ca9e5e73e5725 (diff)
downloadlinux-libre-raptor-baf2b0b8d7792c87b01bac8fba4ef4e480523a6a.tar.gz
linux-libre-raptor-baf2b0b8d7792c87b01bac8fba4ef4e480523a6a.zip
Set LC_ALL and LANGUAGE. Suggested by samgee on #gnewsense.
-rwxr-xr-xscripts/deblob-check5
-rwxr-xr-xscripts/deblob-main4
2 files changed, 7 insertions, 2 deletions
diff --git a/scripts/deblob-check b/scripts/deblob-check
index b2e21fe85..f3e89e301 100755
--- a/scripts/deblob-check
+++ b/scripts/deblob-check
@@ -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>
@@ -253,7 +253,8 @@
# 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"
diff --git a/scripts/deblob-main b/scripts/deblob-main
index 6ec8e69bf..63d0c9325 100755
--- a/scripts/deblob-main
+++ b/scripts/deblob-main
@@ -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,/*$,,'`
OpenPOWER on IntegriCloud