]> granicus.if.org Git - python/commitdiff
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
authordoko@ubuntu.com <doko@ubuntu.com>
Wed, 15 May 2013 16:02:13 +0000 (18:02 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Wed, 15 May 2013 16:02:13 +0000 (18:02 +0200)
Lib/ctypes/util.py
Misc/NEWS

index 151560427272a2496e7d88dbefe4988c09cc61ac..054c51158e6e7f928386f0d32489c6fd70b83a28 100644 (file)
@@ -92,7 +92,7 @@ elif os.name == "posix":
         fdout, ccout = tempfile.mkstemp()
         os.close(fdout)
         cmd = 'if type gcc >/dev/null 2>&1; then CC=gcc; elif type cc >/dev/null 2>&1; then CC=cc;else exit 10; fi;' \
-              '$CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name
+              'LANG=C LC_ALL=C $CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name
         try:
             f = os.popen(cmd)
             try:
index e88f8c454b4fddb7fec6c49d2488f242106d7c5b..98c4c19a4d884a2b0e867813193d1e844902bf83 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@ What's New in Python 3.3.3?
 Core and Builtins
 -----------------
 
+- Issue #17754: Make ctypes.util.find_library() independent of the locale.
+
 - Issue #17927: Frame objects kept arguments alive if they had been copied into
   a cell, even if the cell was cleared.