[issue25540] virtual conf file encoding error on windows

2015-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Already fixed in issue25185. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> Inconsistency between venv and site ___ Python tracker

[issue25540] virtual conf file encoding error on windows

2015-11-02 Thread tanbro
New submission from tanbro: When create a new `venv` on windows, sometimes an `UnicodeDecodeError` occurred. It seems that, it is caused by the system module `site`. In `Lib/site.py`, line 468:: with open(virtual_conf) as f: for line in f: line = line.strip(