← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:relocate-virtualenv-locale into launchpad:master

 

Colin Watson has proposed merging ~cjwatson/launchpad:relocate-virtualenv-locale into launchpad:master.

Commit message:
Run virtualenv-tools with a UTF-8 locale

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/400987

It doesn't necessarily have one when it's being run as part of a deployment.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:relocate-virtualenv-locale into launchpad:master.
diff --git a/utilities/relocate-virtualenv b/utilities/relocate-virtualenv
index d3cf2ab..ab49b74 100755
--- a/utilities/relocate-virtualenv
+++ b/utilities/relocate-virtualenv
@@ -14,7 +14,8 @@ fi
 
 # virtualenv-tools does most of the hard work.  We must explicitly invoke it
 # with the virtualenv's Python, as its #! line is probably wrong.
-"$1/bin/python" "$1/bin/virtualenv-tools" --update-path=auto "$1"
+LC_ALL=C.UTF-8 \
+    "$1/bin/python" "$1/bin/virtualenv-tools" --update-path=auto "$1"
 
 # Fix up a few things that virtualenv-tools doesn't handle.
 top="$(readlink -f "$(dirname "$0")/..")"