From: R David Murray Date: Sat, 18 Jan 2014 19:55:09 +0000 (-0500) Subject: #19855: restore use of LC_ALL, not LC_MESSAGES X-Git-Tag: v2.7.8~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8e18af0e52d45a933655a6e211e3c708245f999;p=python #19855: restore use of LC_ALL, not LC_MESSAGES I didn't realize LC_ALL was an override, and I should have. I tried to make a test, but it is not clear that the LC variables actually affect the strings that uuid is using to parse the command output. --- diff --git a/Lib/uuid.py b/Lib/uuid.py index 2a70ce69dd..63cb3aed28 100644 --- a/Lib/uuid.py +++ b/Lib/uuid.py @@ -305,9 +305,9 @@ def _find_mac(command, args, hw_identifiers, get_index): return None try: - # LC_MESSAGES to get English output, 2>/dev/null to + # LC_ALL to ensure English output, 2>/dev/null to # prevent output on stderr - cmd = 'LC_MESSAGES=C %s %s 2>/dev/null' % (executable, args) + cmd = 'LC_ALL=C %s %s 2>/dev/null' % (executable, args) with os.popen(cmd) as pipe: for line in pipe: words = line.lower().split()