From: doko@ubuntu.com Date: Wed, 15 May 2013 16:02:13 +0000 (+0200) Subject: - Issue #17754: Make ctypes.util.find_library() independent of the locale. X-Git-Tag: v3.4.0a1~726^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef535584a941c6e5cada828a118a06f5ddf80e86;p=python - Issue #17754: Make ctypes.util.find_library() independent of the locale. --- diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index 1515604272..054c51158e 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: diff --git a/Misc/NEWS b/Misc/NEWS index e88f8c454b..98c4c19a4d 100644 --- 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.