]> granicus.if.org Git - python/commitdiff
Merge #19855: restore use of LC_ALL, not LC_MESSAGES
authorR David Murray <rdmurray@bitdance.com>
Sat, 18 Jan 2014 20:02:00 +0000 (15:02 -0500)
committerR David Murray <rdmurray@bitdance.com>
Sat, 18 Jan 2014 20:02:00 +0000 (15:02 -0500)
1  2 
Lib/uuid.py

diff --cc Lib/uuid.py
index 694a8a9772dc7f10eb7077f9c14dd9ea74b010e0,9946042c298c2efcbac617eb4d4e251bedeca56e..a4e553247d95b7af15470f788955ae0c5ece7291
@@@ -321,9 -321,9 +321,10 @@@ def _find_mac(command, args, hw_identif
              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)
++        # 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()