Bug-ish: global gitignore with non-UTF-8 encoding is silently ignored

196 views
Skip to first unread message

James Braza

unread,
Jan 25, 2022, 7:59:00 AM1/25/22
to git-for-windows
Hello Git mailing list,


The core issue is:
  1. A gitignore made via PowerShell, which used a UTF-16 LE encoding
  2. Git silently ignores the global gitignore, since it wasn't UTF-8 encoding
  3. An end user loses a lot of time understanding this nuance
This behavior is not a bug, but I would consider it to be one, since it has a negative outcome.

It looks like in the above linked issue:
  • A Git for Windows maintainer suggested to email this list.  I don't think that issue's OP ever emailed this list, so I am doing so now
  • The maintainer also detailed a starting point in the issue after closing it
I think Git should either:
  • Start supporting UTF-16 LE
  • Issue a warning for non-supported encodings
Please consider this as a feature request,
-James

Reply all
Reply to author
Forward
0 new messages