From 386a1bf118f4c591027b47a6919f45aebc22c244 Mon Sep 17 00:00:00 2001 From: lxoliva Date: Sun, 22 Jul 2012 21:39:24 +0000 Subject: [PATCH] Set LC_ALL and LANGUAGE. Suggested by samgee on #gnewsense. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@8763 559672b5-ba27-0410-b829-e8f1faed8b1b --- deblob-check | 5 +++-- deblob-main | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/deblob-check b/deblob-check index b2e21fe851c..f3e89e30186 100755 --- a/deblob-check +++ b/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/deblob-main b/deblob-main index 6ec8e69bf38..63d0c9325b5 100755 --- a/deblob-main +++ b/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,/*$,,'` -- 2.31.1