diff options
author | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2007-05-14 17:37:16 +0000 |
---|---|---|
committer | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2007-05-14 17:37:16 +0000 |
commit | 72a77e0eaf5be62fcac803fca21af1b1ad26c47b (patch) | |
tree | 72458031673edc7f318bd38f3c40fe812b5d0598 | |
parent | 9dd6d8b645d8f4d2b991101dab675316e0b04d39 (diff) | |
download | wgetpaste-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-x | wgetpaste | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |