Re: BUG: "git add --interactive" does not work with UTF-8 filenames
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 2, 2008, 15:50 UTC
- Message-ID
- <7v3aq49ryo.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <200804021317.16007.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
> By the way, the code to unwrap the path quoting can be found in gitweb > as unescape() subroutine... or git-add--interactive can use '-z' switch.
Yes, but if you use '-z' to read from plumbing, you would need your own wrapping on the UI side to protect your output from control characters (most notably LF) embedded in pathnames.
Also I had an impression that the compatibility implementation of run_cmd_pipe() had some issues with NUL terminated list.