Title: Encoding failures with unicode in paths in PY2 · Issue #35 · gitpython-developers/gitdb · GitHub
Open Graph Title: Encoding failures with unicode in paths in PY2 · Issue #35 · gitpython-developers/gitdb
X Title: Encoding failures with unicode in paths in PY2 · Issue #35 · gitpython-developers/gitdb
Description: 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 TEMP...
Open Graph Description: 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,...
X Description: 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 diffic...
Opengraph URL: https://github.com/gitpython-developers/gitdb/issues/35
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Encoding failures with unicode in paths in PY2","articleBody":"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](https://ci.appveyor.com/project/ankostis/gitdb/build/1.0.19), and discovered initially in [_gitpython_ issue #543](https://github.com/gitpython-developers/GitPython/pull/543).\n\nThe 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.\n\nHappily, the _future_ projects [provides a backported implementation](http://stackoverflow.com/a/28327415/548792).\n\nI suggest to start depending this [_future_ project](http://python-future.org/), for all git-python projects; in the end, \na 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.\n\nIn any case, PY3 that is the future...\n","author":{"url":"https://github.com/ankostis","@type":"Person","name":"ankostis"},"datePublished":"2016-10-23T15:37:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/35/gitdb/issues/35"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:de44fc29-f839-2016-aac5-2b0598215278 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2D8:1F92AF:C2CF3:102C4D:6969BB10 |
| html-safe-nonce | 7bfdb1e5df6172a676bf7647411b37c4074db3beb7e01bd59c6f5dcbff666e37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkQ4OjFGOTJBRjpDMkNGMzoxMDJDNEQ6Njk2OUJCMTAiLCJ2aXNpdG9yX2lkIjoiNDc3MzA1MDc3MTg5MDA5MjgxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9bef2e7a564a4ef03873fc4972527f35385d4c6eaf1ef68404e8f508017e5579 |
| hovercard-subject-tag | issue:184696965 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/gitdb/35/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5d465f29237d19b3fddd85c87240c5e4bf2eb636e706ff0c5abf47f79fc44a6/gitpython-developers/gitdb/issues/35 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5d465f29237d19b3fddd85c87240c5e4bf2eb636e706ff0c5abf47f79fc44a6/gitpython-developers/gitdb/issues/35 |
| og:image:alt | 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,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ankostis |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/gitdb git https://github.com/gitpython-developers/gitdb.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126093 |
| octolytics-dimension-repository_nwo | gitpython-developers/gitdb |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126093 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/gitdb |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width