[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2020-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python 2.7 is no longer supported. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2016-01-02 Thread Richard PALO
Richard PALO added the comment: curiously enough, I was able to test with python3.5. The same errors result, and the same workaround seems to get over it. -- ___ Python tracker

[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2016-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The similar problem in Python 3 was addressed in issue24230. But this was a new feature. As for lxml tests, I suggest to use bytes names compatible with all Windows OEM encodings (consisting of ASCII +

[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2016-01-02 Thread Richard PALO
Richard PALO added the comment: This turns out to be related to the locale environment set to 'C'. A UTF-8 locale seems to get over the issue. A fellow pkgsrc colleague filed an issue with lxml already relating to that fact for the test suite (https://bugs.launchpad.net/lxml/+bug/1522052)

[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2016-01-01 Thread Richard PALO
Richard PALO added the comment: I notice similar problems, as found when running the test suite for lxml 3.5.0 on python2.7 == ERROR: test_etree_parse_io_error (lxml.tests.test_io.ETreeIOTestCase)

[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2016-01-01 Thread Richard PALO
Richard PALO added the comment: If I also add .encode('utf-8') to filename on line 278, that seems gets over the pathname problem. I guess it comes down to the fact that if sys.filesystemencoding() is utf-8, which in my case it is (on SunOS), I believe these conversion should be automatic.

[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2015-01-25 Thread Akira Li
New submission from Akira Li: Python 2.7.9 (default, Jan 25 2015, 13:41:30) [GCC 4.9.2] on linux2 Type help, copyright, credits or license for more information. import os, sys, tempfile d = u'\u20ac'.encode(sys.getfilesystemencoding()) # non-ascii if not os.path.isdir(d):

[issue23315] tempfile.mkdtemp fails with non-ascii paths on Python 2

2015-01-25 Thread STINNER Victor
STINNER Victor added the comment: Why do you use an unicode prefix? Does it work with a bytes prefix? You should use Python 3 if you want the best Unicode support. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23315