fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
461 stars 10 forks source link

Diff for UTF16 LE files #755

Open sm-g opened 4 years ago

sm-g commented 4 years ago

Fork_2020-04-23_08-10-23

I have .rc file with UTF16 LE encoding, and Fork does not display diff for it. (VS Code does.)

DanPristupov commented 4 years ago

Somehow git doesn't recognise the content as text.

You should to add *.rc text to .gitattributes file in the root of your repository. You can find more info there: https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes

sm-g commented 4 years ago

I add .gitattributes file to repo root with

*.rc text

content, but this not working (still no diffs).

But after adding this gitattribute when I discard changes in file (via Fork if that important), content of file displayed in wrong enconding:

Code_2020-04-23_09-13-11

(but there is not changes in git)