[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-09-09 Thread Steve Dower
Steve Dower added the comment: Applied Eryk's patch and updated the test to repro it (though it wouldn't repro on 3.6 with PEP 529 applied, but it definitely did on 3.5). -- assignee: -> steve.dower resolution: -> fixed stage: -> resolved status: open -> closed _

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 663a62bcf9c9 by Steve Dower in branch '3.5': Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun) https://hg.python.org/cpython/rev/663a62bcf9c9 New changeset ead30e7262d5 by Steve Dower in branch 'default': I

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-09-04 Thread Steve Dower
Steve Dower added the comment: Given a quick read, it looks like issue27781 (PEP 529) will resolve this? Not encoding the path at all is obviously better, but maybe I'll add this as supporting evidence to the PEP... -- ___ Python tracker

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-08-31 Thread Nick Coghlan
Nick Coghlan added the comment: As a test case for handling non-ASCII characters in the name of the zipfile itself, I believe it should be sufficient to add 'Ł' to TEMP_DIR and TEMP_ZIP in https://hg.python.org/cpython/file/default/Lib/test/test_zipimport.py -- ___

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-08-31 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- nosy: +jayvdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2015-11-28 Thread Eryk Sun
Eryk Sun added the comment: The problem is that the compile_source function in Modules/zipimport.c calls PyUnicode_EncodeFSDefault to get an encoded string to pass as the filename argument of Py_CompileString. On Windows this uses the ANSI codepage (i.e. 'mbcs'). Apparently your system's ANSI

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2015-11-28 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +brett.cannon, eric.snow, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2015-11-28 Thread Laura Creighton
Changes by Laura Creighton : -- nosy: +Marcus.Smith, dstufft, ncoghlan, paul.moore ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25758] ensurepip/venv broken on Windows if path includes unicode

2015-11-28 Thread Dima Tisnek
New submission from Dima Tisnek: One of my students installed Python 3.5 on Windows 10 to default location where user name "Łukasz" contains unicode. Now "-m venv" and "-m ensurepip" do not work: C:\Users\Łukasz>C:\Users\Łukasz\AppData\Local\Programs\Python\Python35-32\python.exe -m venv work