From baf2b0b8d7792c87b01bac8fba4ef4e480523a6a Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 22 Jul 2012 21:39:24 +0000 Subject: Set LC_ALL and LANGUAGE. Suggested by samgee on #gnewsense. --- scripts/deblob-check | 5 +++-- scripts/deblob-main | 4 ++++ 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 @@ -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,/*$,,'` -- cgit v1.2.3