You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having python-2 working correctly (both in Linux and Windows) with unicodes in filepaths (and process-streams, but I don't think there are processes used in this project) is increasingly difficult, e.g. when running with unicodes in TEMPDIR env-var, as seen in this travis job, and discovered initially in gitpython issue #543.
The way to deal with such issues comes from PY3, using pep383 and the error='surrogateescape' error-handler when dencoding filepaths and process-streams. Unfortunately in python-2 there is no such codec error-handler.
I suggest to start depending this future project, for all git-python projects; in the end,
a lot of compatibility code can be substituted. But note that the POV for this project is the opposite from 2to3: you write PY3 code and you make sure it runs on PY2.
Having python-2 working correctly (both in Linux and Windows) with unicodes in filepaths (and process-streams, but I don't think there are processes used in this project) is increasingly difficult, e.g. when running with unicodes in
TEMPDIRenv-var, as seen in this travis job, and discovered initially in gitpython issue #543.The way to deal with such issues comes from PY3, using pep383 and the
error='surrogateescape'error-handler when dencoding filepaths and process-streams. Unfortunately in python-2 there is no such codec error-handler.Happily, the future projects provides a backported implementation.
I suggest to start depending this future project, for all git-python projects; in the end,
a lot of compatibility code can be substituted. But note that the POV for this project is the opposite from 2to3: you write PY3 code and you make sure it runs on PY2.
In any case, PY3 that is the future...