summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <bo.andresen@zlin.dk>2007-05-14 17:37:16 +0000
committerBo Ørsted Andresen <bo.andresen@zlin.dk>2007-05-14 17:37:16 +0000
commit72a77e0eaf5be62fcac803fca21af1b1ad26c47b (patch)
tree72458031673edc7f318bd38f3c40fe812b5d0598
parent9dd6d8b645d8f4d2b991101dab675316e0b04d39 (diff)
downloadwgetpaste-72a77e0eaf5be62fcac803fca21af1b1ad26c47b.tar.gz
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.
-rwxr-xr-xwgetpaste4
1 files 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