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

Re: Path character encodings

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 5, 2012, 21:40 UTC
Message-ID
<7vipiizpyn.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20120305212657.GA17903@jupiter.local>
Paul Betts <paul@paulbetts.org> writes:
Show 8 quoted lines
> ## Proposed Mitigation
>
> For an initial mitigation plan, I'd like to propose adding a warning to either
> git clone or git checkout, that if invalid UTF-8 strings are detected, a
> warning is printed to the user.
>
> However, without an actionable solution, it's not much of a help other than to
> suggest that they downgrade to a lower version of Git.

Hmph, I do not see a reason to make a huge molehill in this. The pathnames are of unspecified encoding, and if a project declares that they always use UTF-8, that would be great. Older history may need to be rewritten but that is a given.

Wouldn't a flag day event per project that runs filter-branch and have participants restart their repositories be sufficient? Why does git itself have to do anything about it, and how would it help users without hurting other git users who are not involved in such a project?

Previous: Paul BettsNext: Paul Betts
Message 2 of 4 in “Path character encodings”
  1. Paul BettsMar 5, 2012
  2. Junio C HamanoMar 5, 2012
  3. Paul BettsMar 5, 2012
  4. Junio C HamanoMar 5, 2012

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.