Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4828)

Unified Diff: build/compiler_version.py

Issue 207873002: Fix compiler_version.py on systems with non-English locale. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small comment fix. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/compiler_version.py
diff --git a/build/compiler_version.py b/build/compiler_version.py
index b06712d25b2d3c25990a97f99a630a66c703ce0b..fd23d89bd63b21c2304b80e22c12df7450120b42 100755
--- a/build/compiler_version.py
+++ b/build/compiler_version.py
@@ -60,6 +60,10 @@ def GetVersion(compiler, tool):
def main(args):
+ # Force the locale to C otherwise the version string could be localized
+ # making regex matching fail.
+ os.environ["LC_ALL"] = "C"
+
tool = "compiler"
if len(args) == 1:
tool = args[0]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698