From: doko@ubuntu.com Date: Wed, 15 May 2013 13:46:11 +0000 (+0200) Subject: - Issue #17754: Make ctypes.util.find_library() independent of the locale. X-Git-Tag: v2.7.6rc1~391 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96645cc4ff284b17a11db87726a7dcb874945dc5;p=thirdparty%2FPython%2Fcpython.git - Issue #17754: Make ctypes.util.find_library() independent of the locale. --- diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index fe2b5205325d..fe0ed0a085f4 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: diff --git a/Misc/NEWS b/Misc/NEWS index 6cdf42b171bd..baf06d0ca30b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,7 @@ Core and Builtins Library ------- +- Issue #17754: Make ctypes.util.find_library() independent of the locale. What's New in Python 2.7.5? ===========================