summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2013-05-15 16:02:13 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2013-05-15 16:02:13 (GMT)
commitef535584a941c6e5cada828a118a06f5ddf80e86 (patch)
tree5e18d74d95180e2f512e95094440c2f559b50291 /Lib/ctypes
parentdbbf4c813ff3f39dcc145d5263c78eaec728fb01 (diff)
downloadcpython-ef535584a941c6e5cada828a118a06f5ddf80e86.zip
cpython-ef535584a941c6e5cada828a118a06f5ddf80e86.tar.gz
cpython-ef535584a941c6e5cada828a118a06f5ddf80e86.tar.bz2
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
index 1515604..054c511 100644
--- a/Lib/ctypes/util.py
+++ b/Lib/ctypes/util.py
@@ -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: