From 72a77e0eaf5be62fcac803fca21af1b1ad26c47b Mon Sep 17 00:00:00 2001 From: Bo Ørsted Andresen Date: Mon, 14 May 2007 17:37:16 +0000 Subject: Use LC_ALL instead of LC_MESSAGES. If the user has LC_ALL set that overrides LC_MESSAGES so it fails with a non-english locale. --- wgetpaste | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgetpaste b/wgetpaste index 3e2ab7f..46b94a7 100755 --- a/wgetpaste +++ b/wgetpaste @@ -550,9 +550,9 @@ RECIPIENT="$(getrecipient RAW)" # paste it WGET_ARGS="--tries=5 --timeout=60 ${WGET_ARGS}" if geturl needstdout || [[ ${DEBUG} || ! -w /dev/null ]]; then - OUTPUT="$(LC_MESSAGES=C wget -O - ${WGET_ARGS} ${RECIPIENT} 2>&1)" + OUTPUT="$(LC_ALL=C wget -O - ${WGET_ARGS} ${RECIPIENT} 2>&1)" else - OUTPUT="$(LC_MESSAGES=C wget -O /dev/null ${WGET_ARGS} ${RECIPIENT} 2>&1)" + OUTPUT="$(LC_ALL=C wget -O /dev/null ${WGET_ARGS} ${RECIPIENT} 2>&1)" fi # clean temporary file if it was created -- cgit v1.2.3