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
changes/60/343160/1
iannucci@chromium.org 9 years ago
parent 29291966a3
commit 8b7274b1a2

@ -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:

Loading…
Cancel
Save