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

Re: git-filter-branch : LANG / LC_ALL = C breaks UTF-8 author names

From
RMRichard MICHAEL <rmichael@leadformance.com>
Date
Aug 20, 2010, 13:44 UTC
Message-ID
<4C6E86AA.2020903@leadformance.com>
In-Reply-To
<20100820133244.GB15736@burratino>
  On 10-08-20 3:32 PM, Jonathan Nieder wrote:
Show 10 quoted lines
> Richard MICHAEL wrote:
>
>> I am filtering our repo with git-filter-branch, but as the sed
>> script runs with LANG=C LC_ALL=C (7 bit US ASCII), it dies on
>> commits authored by our team members with accented names.
> Yep, someone else recently sent a report about such a sed version,
> too.  It is breaking our fragile minds; we ought to find some way to
> deal with it, but we haven't yet.
>
> Jonathan
Jonathan, thanks for your reply.

What about special casing the bad sed (or whitelisting good sed)? Surely a hack, but would those of us with GNU or BSD would be happy. Which was the troublesome sed?

That opposed to figuring out the problem, reading about unicode, and re-cloning and re-filtering 5,000 commits. :-) Unfortunately, it doesn't "die" well either; the 'export' shell var fails but it keeps processing commits. (If I hadn't investigated and changed the LANG, would I have lost those commits?)

Regards, Richard

Previous: Jonathan NiederNext: Jonathan Nieder
Message 3 of 4 in “git-filter-branch : LANG / LC_ALL = C breaks UTF-8 author names”
  1. Richard MICHAELAug 20, 2010
  2. Jonathan NiederAug 20, 2010
  3. Richard MICHAELAug 20, 2010
  4. Jonathan NiederSep 1, 2010

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.