fork-dev / TrackerWin

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

Fork unable to display file diffs for the UTF16 LE BOM encoding. #1604

Open marlon-tucker opened 2 years ago

marlon-tucker commented 2 years ago

Hello,

We have a few legacy files which have been set to UTF16-LE-BOM encoding for whatever reason. This is how fork displays the diffs:

image

In our case the file encoding is a mistake so whenever we encounter one we convert it back to UTF8 and all is happy again.

However other git tools such as VSCode and Visual Studio are able to display diffs for these files.

It's probably not a hugely urgent issue but I'd thought I'd submit it so it's on the radar.

DanPristupov commented 2 years ago

What does git show if you run git show SHA for such commit in the command line?

marlon-tucker commented 2 years ago

Same as Fork actually which presumably points to a git for windows issue?

I wonder how VSCode / Visual Studio work around that though.

fourofspades commented 2 years ago

We have the same issue with UTF16 LE XML. We can't really change our file encoding, and it would be really nice if Fork could diff it (we use external Beyond Compare diff at the moment).

starryspace commented 2 years ago

We have this same issue too. This has been bothering us for a long time.