You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
git-diff uses the following way to invoke getLineDiffs:
getLineDiffs(path, @editor.getText())
When the file is GBK encoded, whether open with UTF-8 or GBK encoding in Atom, pseudo diffs on those GBK lines exist.
Of course, for GBK encoded file one should open it with GBK encoding in Atom (the above UTF-8 is just for debugging). When opening with GBK encoding, I tried to use iconv-lite to encode text:
Related to: atom/git-diff#60
My file is GBK encoded. The problem is that for GBK encoded lines,
getLineDiffs
signals diffs on those lines, even nothing at all is changed.I tried to use iconv-lite to encode the text to 'GBK' and then decode to 'utf-8' before passing text to
getLineDiffs
, the problem still exists.The text was updated successfully, but these errors were encountered: