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

Re: Bug: rebase when an author uses accents in name on MacOSx

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 1, 2012, 16:19 UTC
Message-ID
<7vmx4n3sz5.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20120601093039.GD32340@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> [Please don't top-post.]
> ...
> But you have to keep in mind all of the people who will be led down the
> wrong path by your breadcrumb when the failure is caused by a
> _different_ problem. What is the probability that it is helpful versus
> not helpful?  If you are going to give advice that sed might be broken,
> you should at least test to see if it is broken and report it.
Eek, do that at runtime in the error code path?
Add something like
	suspected_sed_breakage () {
		xxxxx=$(printf "\370\235\204\236\n" | LC_CTYPE=C sed 's/./x/g')
                if test "x$xxxxx" != "xxxxx"
                then
			die "Your sed is broken; cannot run $1"
		fi
	}
to git-sh-setup, and do something like:
	. "$dotest/author-script" || suspected_sed_breakage "$0"
in git-am?

The problem I see is that at that point where we have to suspect something fundamental as sed broken on the platform, we cannot even trust printf, test, or even the shell itself behaving sanely.

So I would say, although it is a fun thought-experiment, such a test and breadcrumb is not really worth it.

Previous: Lanny RippleNext: Lanny Ripple
Message 17 of 21 in “Bug: rebase when an author uses accents in name on MacOSx”
  1. Lanny RippleMay 30, 2012
  2. Junio C HamanoMay 30, 2012
  3. Jürgen KreilederMay 30, 2012
  4. Jeff KingMay 31, 2012
  5. Junio C HamanoMay 31, 2012
  6. Lanny RippleMay 31, 2012
  7. Thomas RastMay 31, 2012
  8. Lanny RippleMay 31, 2012
  9. Junio C HamanoMay 31, 2012
  10. Lanny RippleMay 31, 2012
  11. Junio C HamanoMay 31, 2012
  12. Lanny RippleMay 31, 2012
  13. Jeff KingJun 1, 2012
  14. Lanny RippleJun 1, 2012
  15. Jeff KingJun 2, 2012
  16. Lanny RippleJun 2, 2012
  17. Junio C HamanoJun 1, 2012
  18. Lanny RippleJun 1, 2012
  19. Junio C HamanoJun 1, 2012
  20. Jeff KingJun 2, 2012
  21. Thomas RastMay 31, 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.