Fix compiler_version.py on systems with non-English locale.

The the version string can be localized! The regexs assume English formatting and will fail to match under other localization (such as when the versions dots become commas).

http://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html#Locale-Environment-Variables

BUG=354231

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258867 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/compiler_version.py b/build/compiler_version.py
index b06712d2..fd23d89b 100755
--- a/build/compiler_version.py
+++ b/build/compiler_version.py
@@ -60,6 +60,10 @@
 
 
 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]