Title: Crash with unicode path · Issue #761 · gitpython-developers/GitPython · GitHub
Open Graph Title: Crash with unicode path · Issue #761 · gitpython-developers/GitPython
X Title: Crash with unicode path · Issue #761 · gitpython-developers/GitPython
Description: Hi, I ran into a problem that this library doesn't support unicode in path I use: Debian 9 Python 3.5.3 GitPython==2.1.10 (installed by pip3 install GitPython command) i found old issue, similar to mine, but it doesn't helped me: #532 Ev...
Open Graph Description: Hi, I ran into a problem that this library doesn't support unicode in path I use: Debian 9 Python 3.5.3 GitPython==2.1.10 (installed by pip3 install GitPython command) i found old issue, similar to...
X Description: Hi, I ran into a problem that this library doesn't support unicode in path I use: Debian 9 Python 3.5.3 GitPython==2.1.10 (installed by pip3 install GitPython command) i found old issue, simila...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/761
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash with unicode path","articleBody":"Hi, I ran into a problem that this library doesn't support unicode in path\r\n\r\nI use:\r\n1. Debian 9\r\n2. Python 3.5.3\r\n3. GitPython==2.1.10 (installed by ``` pip3 install GitPython``` command)\r\n\r\ni found old issue, similar to mine, but it doesn't helped me: \r\nhttps://github.com/gitpython-developers/GitPython/issues/532\r\n\r\nEverything works just fine if i will use path without cyrillic letters.\r\nCode what doesn't work:\r\n```python\r\n#!/usr/bin/python3\r\nimport git\r\ndef main():\r\n\r\n repo = git.Repo.clone_from(\"https://github.com/gitpython-developers/GitPython.git\",\r\n \"/home/vlad/AltSTU-Submodules/Диплом/Microcontroller-Unit-Testing/scripts/\")\r\n\r\nif __name__ == '__main__':\r\n main()\r\n\r\n```\r\n\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"gitl.py\", line 13, in \u003cmodule>\r\n main()\r\n File \"gitl.py\", line 9, in main\r\n \"/home/vlad/AltSTU-Submodules/Диплом/Microcontroller-Unit-Testing/scripts/\")\r\n File \"/home/vlad/.local/lib/python3.5/site-packages/git/repo/base.py\", line 982, in clone_from\r\n return cls._clone(git, url, to_path, GitCmdObjectDB, progress, **kwargs)\r\n File \"/home/vlad/.local/lib/python3.5/site-packages/git/repo/base.py\", line 933, in _clone\r\n finalize_process(proc, stderr=stderr)\r\n File \"/home/vlad/.local/lib/python3.5/site-packages/git/util.py\", line 333, in finalize_process\r\n proc.wait(**kwargs)\r\n File \"/home/vlad/.local/lib/python3.5/site-packages/git/cmd.py\", line 402, in wait\r\n stderr = force_bytes(stderr)\r\n File \"/home/vlad/.local/lib/python3.5/site-packages/gitdb/utils/encoding.py\", line 16, in force_bytes\r\n return data.encode(encoding)\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 54-59: ordinal not in range(128)\r\n\r\n```","author":{"url":"https://github.com/vtsisyk","@type":"Person","name":"vtsisyk"},"datePublished":"2018-05-31T08:35:44Z","url":"https://github.com/gitpython-developers/GitPython/issues/761"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:12c74828-8d78-c6c2-38f8-51c2c186981f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 939C:139223:77FF0C:9FEB4D:6B00B011 |
| html-safe-nonce | b5a99d3be808e19090492f5021b952e8d9f6f020449f79e86bf77110dc8fdb78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzlDOjEzOTIyMzo3N0ZGMEM6OUZFQjREOjZCMDBCMDExIiwidmlzaXRvcl9pZCI6IjIxNjYwNTE3MTI1Mzg4MTY1MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a454584c36353f8aece737d1127c91865c5667fefb41ceead8bceaa62c2029dc |
| hovercard-subject-tag | issue:328044021 |
| 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/GitPython/761/issue_layout |
| twitter:image | https://opengraph.githubassets.com/119a60591e0664427831e0c04a77c0d4e086f88626df887792946fbc3f64e42a/gitpython-developers/GitPython/issues/761 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/119a60591e0664427831e0c04a77c0d4e086f88626df887792946fbc3f64e42a/gitpython-developers/GitPython/issues/761 |
| og:image:alt | Hi, I ran into a problem that this library doesn't support unicode in path I use: Debian 9 Python 3.5.3 GitPython==2.1.10 (installed by pip3 install GitPython command) i found old issue, similar to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vtsisyk |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | 729d8cda69b3d267995675dfbf89ff27ccf61bf6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width