Added support for encodings for Git.#24911
Added support for encodings for Git.#24911joaomoreno merged 1 commit intomicrosoft:masterfrom igelbox:git-encoding
Conversation
Fixes #21146 **Bug** Git always uses utf8 encoding for retrieving file contents. **Fix** Pass the 'files.encoding' configuration property to the git-extension and use this encoding to decode git output.
|
@igelbox, thanks for your PR! By analyzing the history of the files in this pull request, we identified @joaomoreno and @dbaeumer to be potential reviewers. |
|
@igelbox, It will cover your contributions to all Microsoft-managed open source projects. |
|
@igelbox, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
|
Git output must be decoded using the current view (file) encoding. But it's NOT a complete solution. |
|
Thanks! 🍻 Did a few changes:
|
Fixes #21146
Bug
Git always uses utf8 encoding for retrieving file contents.
Fix
Pass the 'files.encoding' configuration property to the git-extension and use this encoding to decode git output.