[issue17754] test_ctypes assumes LANG=C LC_ALL=C

2013-05-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4f594f9b296a by doko in branch '2.7':
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
http://hg.python.org/cpython/rev/4f594f9b296a

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17754
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17754] test_ctypes assumes LANG=C LC_ALL=C

2013-05-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d6a43a99aea3 by doko in branch '3.3':
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
http://hg.python.org/cpython/rev/d6a43a99aea3

New changeset 9a44f12df844 by doko in branch 'default':
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
http://hg.python.org/cpython/rev/9a44f12df844

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17754
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17754] test_ctypes assumes LANG=C LC_ALL=C

2013-05-15 Thread Matthias Klose

Matthias Klose added the comment:

fixed in 2.7, 3.3 and trunk

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17754
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17754] test_ctypes assumes LANG=C LC_ALL=C

2013-04-16 Thread Matthias Klose

New submission from Matthias Klose:

this test assumes LANG=C LC_ALL=C

test.test_ctypes (unittest.loader.LoadTestsFailure) ... ERROR

==
ERROR: test.test_ctypes (unittest.loader.LoadTestsFailure)
--
Traceback (most recent call last):
  File /usr/lib/python3.3/test/test_ctypes.py, line 11, in load_tests
skipped, testcases = ctypes.test.get_tests(ctypes.test, test_*.py, 
verbosity=0)
  File /usr/lib/python3.3/ctypes/test/__init__.py, line 64, in get_tests
mod = __import__(modname, globals(), locals(), ['*'])
  File /usr/lib/python3.3/ctypes/test/test_find.py, line 17, in module
lib_gle = find_library(gle)
  File /usr/lib/python3.3/ctypes/util.py, line 242, in find_library
return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
  File /usr/lib/python3.3/ctypes/util.py, line 99, in _findLib_gcc
trace = f.read()
  File /usr/lib/python3.3/encodings/ascii.py, line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 471: 
ordinal not in range(128)

--
components: Tests
messages: 187070
nosy: doko
priority: normal
severity: normal
stage: needs patch
status: open
title: test_ctypes assumes LANG=C LC_ALL=C
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17754
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17754] test_ctypes assumes LANG=C LC_ALL=C

2013-04-16 Thread Matthias Klose

Matthias Klose added the comment:

hmm, looks more an issue in ctypes/util.py. _findLib_gcc should set the 
environment explicitly as already done in _findSoname_ldconfig.

--
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17754
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17754] test_ctypes assumes LANG=C LC_ALL=C

2013-04-16 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
components: +ctypes -Tests

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17754
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com