summaryrefslogtreecommitdiffstats
path: root/Lib/uuid.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-01-18 20:02:00 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-01-18 20:02:00 (GMT)
commitbbf18bee3ca217e5eeb57470325d7c75f5e3457a (patch)
tree35ed0db07ef1722558b58b8a90c208a8660c1d29 /Lib/uuid.py
parent5d83d1a8141fa248356e4825857f166e4e65ec16 (diff)
parent42953535686f7a8ed4dc250d9c87187c20462c1f (diff)
downloadcpython-bbf18bee3ca217e5eeb57470325d7c75f5e3457a.zip
cpython-bbf18bee3ca217e5eeb57470325d7c75f5e3457a.tar.gz
cpython-bbf18bee3ca217e5eeb57470325d7c75f5e3457a.tar.bz2
Merge #19855: restore use of LC_ALL, not LC_MESSAGES
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r--Lib/uuid.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py
index 694a8a9..a4e5532 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -321,9 +321,10 @@ def _find_mac(command, args, hw_identifiers, get_index):
return None
try:
- # LC_MESSAGES to get English output, 2>/dev/null to
- # prevent output on stderr
- cmd = 'LC_MESSAGES=C %s %s 2>/dev/null' % (executable, args)
+ # LC_ALL to ensure English output, 2>/dev/null to prevent output on
+ # stderr (Note: we don't have an example where the words we search for
+ # are actually localized, but in theory some system could do so.)
+ 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()