commit | 3059a56e94068b9d3f60bb758d456428631399ac | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Mar 24 03:40:01 2014 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Mon Mar 24 03:40:01 2014 |
tree | 1cbc4117702023fa827929f6f3cfeee7d29fda00 | |
parent | 26fe7c28ea43fd9f36eac850f65229d53c75e56a [diff] [blame] |
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]