summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2013-05-15 13:46:11 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2013-05-15 13:46:11 (GMT)
commit96645cc4ff284b17a11db87726a7dcb874945dc5 (patch)
tree34bb03ce5cbf10d5e7e2f3f6220292ab774cdf57 /Lib/ctypes
parent7423903eee3f01e5781fa6840ee08ccf5f26e800 (diff)
downloadcpython-96645cc4ff284b17a11db87726a7dcb874945dc5.zip
cpython-96645cc4ff284b17a11db87726a7dcb874945dc5.tar.gz
cpython-96645cc4ff284b17a11db87726a7dcb874945dc5.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 fe2b520..fe0ed0a 100644
--- a/Lib/ctypes/util.py
+++ b/Lib/ctypes/util.py
@@ -93,7 +93,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: