Commit 8b7274b1 authored by iannucci@chromium.org's avatar iannucci@chromium.org

Use getdefaultlocale in fix_encoding

R=dnj@chromium.org, maruel@chromium.org
BUG=595883

Review URL: https://codereview.chromium.org/1843843002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299547 0039d316-1c4b-4281-b951-d872f2087c98
parent 29291966
......@@ -51,7 +51,7 @@ def fix_default_encoding():
except locale.Error:
continue
try:
lang = locale.getlocale(aref)[0]
lang, _ = locale.getdefaultlocale()
except (TypeError, ValueError):
continue
if lang:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment