Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bcaddf6

Browse files
committed
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
2 parents 9aed17f + ef53558 commit bcaddf6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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
@@ -88,6 +88,8 @@ Core and Builtins
8888
Library
8989
-------
9090

91+
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
92+
9193
- Issue #17968: Fix memory leak in os.listxattr().
9294

9395
- Issue #17606: Fixed support of encoded byte strings in the XMLGenerator

0 commit comments

Comments
 (0)