[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-19 Thread Christophe Combelles
Christophe Combelles cc...@free.fr added the comment: (I forgot to mention that the bug occured on python 3.1.2.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8740 ___

[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-17 Thread Christophe Combelles
New submission from Christophe Combelles cc...@free.fr: This leads to a maximum recursion depth error: $ python3.1 import sys, pdb sys.setfilesystemencoding('iso8859-7') pdb.set_trace() I'm on ubuntu 10.04 x86_64, with LANG=fr_FR.utf8 -- components: None messages: 105904 nosy:

[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-17 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Next release should fix it: 3.1.3 (Tested on 3.1 branch) -- nosy: +flox, haypo resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - sys.setfilesystemencoding(xxx); open(a) = stack overflow

[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: What is the problem? $ python3.1 Python 3.1.2 (r312:79147, Apr 21 2010, 23:52:07) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. import sys, pdb; sys.setfilesystemencoding('iso8859-7');

[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The file system encoding should not be modifiable. Call sys.setfilesystemencoding() breaks Python, eg. module filenames are not reencoded. See also #8611. sys.setfilesystemencoding() is as danregeous as sys.setdefaultencoding()

[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-17 Thread Christophe Combelles
Christophe Combelles cc...@free.fr added the comment: Traceback (most recent call last): File /usr/lib/python3.1/encodings/__init__.py, line 98, in search_function level=0) File /usr/lib/python3.1/encodings/__init__.py, line 98, in search_function level=0) (...) File

[issue8740] infinite recursion with setfilesystemencoding and pdb

2010-05-17 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oh, flox closed the issue: it's a duplicate of #8226. The bug was fixed in Python 3.1.2 by myself (r79394). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8740