Skip to content

Commit ef53558

Browse files
committed
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
1 parent dbbf4c8 commit ef53558

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/ctypes/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _findLib_gcc(name):
9292
fdout, ccout = tempfile.mkstemp()
9393
os.close(fdout)
9494
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;' \
95-
'$CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name
95+
'LANG=C LC_ALL=C $CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name
9696
try:
9797
f = os.popen(cmd)
9898
try:

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ What's New in Python 3.3.3?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
14+
1315
- Issue #17927: Frame objects kept arguments alive if they had been copied into
1416
a cell, even if the cell was cleared.
1517

0 commit comments

Comments
 (0)