]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
authordoko@ubuntu.com <doko@ubuntu.com>
Wed, 15 May 2013 13:46:11 +0000 (15:46 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Wed, 15 May 2013 13:46:11 +0000 (15:46 +0200)
Lib/ctypes/util.py
Misc/NEWS

index fe2b5205325da632b29ff976619309f66c02401c..fe0ed0a085f4612303b4e96fcc000ed1b8cb5077 100644 (file)
@@ -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:
index 6cdf42b171bd59c09795186d46a24c7563513ab8..baf06d0ca30ba524e3048dd07e73eb98057c20ea 100644 (file)
--- 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?
 ===========================