Title: my fix for troubles with VCSVimDiff against HEAD with cp1252 files by haron13-2019 · Pull Request #1 · vim-scripts/vcscommand.vim · GitHub
Open Graph Title: my fix for troubles with VCSVimDiff against HEAD with cp1252 files by haron13-2019 · Pull Request #1 · vim-scripts/vcscommand.vim
X Title: my fix for troubles with VCSVimDiff against HEAD with cp1252 files by haron13-2019 · Pull Request #1 · vim-scripts/vcscommand.vim
Description: I assume that somewhere after vim 8.0 vim stopped to guess fileencoding of generated buffer with empty fileencoding option, or assumes that to be utf8 internally. Anyway setting fileencoding explicitely on the generated buffer fixes the diff. Steps to reproduce: Environment: cygwin with vim8.1 with patches 1-1772 mkdir tstvcscmd; cd tstvcscmd; git init . # Create empty git repository for ((i = 1; i <= 200; i++)) ; do echo $i >> ./f; done; # prepare some file printf '\xfc' >> f # insert "u umlaut" for ((i = 200; i > 0; i--)) ; do echo $i >> ./f; done; git add f git ci -m 'f added' cat f | sed -e '5,10d' > f.new ; mv f.new f # some modification vim f -c 'VCSVimDiff' Without patch in my environment "u umlaut" is recognized as change in my working copy. With patch it is ignored (correctly).
Open Graph Description: I assume that somewhere after vim 8.0 vim stopped to guess fileencoding of generated buffer with empty fileencoding option, or assumes that to be utf8 internally. Anyway setting fileencoding explic...
X Description: I assume that somewhere after vim 8.0 vim stopped to guess fileencoding of generated buffer with empty fileencoding option, or assumes that to be utf8 internally. Anyway setting fileencoding explic...
Opengraph URL: https://github.com/vim-scripts/vcscommand.vim/pull/1
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c8fe1f48-2276-f0f0-fb82-6c699cb161e6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A98E:1A0CEA:3387AE6:4914D01:6A4D0C4A |
| html-safe-nonce | 2c0392de63c9995093a3bdff0b2251089f42576a0e05d4655379163612206332 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOThFOjFBMENFQTozMzg3QUU2OjQ5MTREMDE6NkE0RDBDNEEiLCJ2aXNpdG9yX2lkIjoiMjczODM4NTkyMDM4MjAxMjQ5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 18f18544cbbbad3be7143bb00ef6151f8ed5f3cdee6b138c791afa17f8d7029d |
| hovercard-subject-tag | pull_request:304840736 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/vim-scripts/vcscommand.vim/pull/1/files |
| twitter:image | https://avatars.githubusercontent.com/u/53128423?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/53128423?s=400&v=4 |
| og:image:alt | I assume that somewhere after vim 8.0 vim stopped to guess fileencoding of generated buffer with empty fileencoding option, or assumes that to be utf8 internally. Anyway setting fileencoding explic... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/vim-scripts/vcscommand.vim git https://github.com/vim-scripts/vcscommand.vim.git |
| octolytics-dimension-user_id | 443562 |
| octolytics-dimension-user_login | vim-scripts |
| octolytics-dimension-repository_id | 1079022 |
| octolytics-dimension-repository_nwo | vim-scripts/vcscommand.vim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1079022 |
| octolytics-dimension-repository_network_root_nwo | vim-scripts/vcscommand.vim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width