git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Jakub NarebskiNext: Teemu Likonen
Message 6 of 8 in “BUG: "git add --interactive" does not work with UTF-8 filenames”
  1. Teemu LikonenApr 1, 2008
  2. Jakub NarebskiApr 1, 2008
  3. Teemu LikonenApr 1, 2008
  4. Junio C HamanoApr 2, 2008
  5. Jakub NarebskiApr 2, 2008
  6. Junio C HamanoApr 2, 2008
  7. Describe the bug about handling non-Ascii filenames in 'git add -i'Teemu Likonen, Apr 2, 2008
  8. Junio C HamanoApr 2, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.