git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bug] git-check-ignore and file names with unicode chars in name - sys-out filename is corrupted
@ 2016-08-09  5:47 Paul Hammant
  2016-08-09  6:38 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Hammant @ 2016-08-09  5:47 UTC (permalink / raw)
  To: git

Reproduction:

  $ echo "*.ignoreme" >> .gitignore
  # (and commit)
  $ touch "fooo-€.ignoreme"
  $ find . -print | grep fooo | xargs git check-ignore
  "./fooo-\342\202\254.ignoreme"

You could view that git-check-ignore isn't corrupting anything, it is
just outputting another form for the file name (octal escaped), but it
doesn't need to change it at all, and its causing downstream problems
in bash scripting.

Of course this may get munged by gmail or a list manager. In the text
above, you should see unicode char "euro sign" to the right of a dash,
and the left of .ignoreme

Git version is 2.9.2

-ph

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-09  6:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09  5:47 [bug] git-check-ignore and file names with unicode chars in name - sys-out filename is corrupted Paul Hammant
2016-08-09  6:38 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).