Fix locale.getlocale() exception.
Reapply r79006 with fixes for ubuntu 10.4.
The only change is in fix_default_encoding() to trap an exception
locale.getlocale() may throw.
[email protected]
BUG=none
TEST=unit test
Review URL: http://codereview.chromium.org/6721029
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79144 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gcl.py b/gcl.py
index 20762d1..ace9f6f 100755
--- a/gcl.py
+++ b/gcl.py
@@ -40,6 +40,7 @@
# gcl now depends on gclient.
from scm import SVN
+import fix_encoding
import gclient_utils
import owners
import presubmit_support
@@ -1473,4 +1474,5 @@
if __name__ == "__main__":
+ fix_encoding.fix_encoding()
sys.exit(main(sys.argv[1:]))