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

[PATCH] t4030-diff-textconv: Make octal escape sequence more portable

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Dec 2, 2008, 08:31 UTC
Message-ID
<4934F245.9020908@viscovery.net>
From: Johannes Sixt <j6t@kdbg.org>

There are printfs around that do not grok '\1', but need '\01'. Discovered on AIX 4.3.x.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
	I found no other instance of printf backslash-nonzero.
 t/t4030-diff-textconv.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t4030-diff-textconv.sh b/t/t4030-diff-textconv.sh
index 03ba26a..4e961df 100755
--- a/t/t4030-diff-textconv.sh
+++ b/t/t4030-diff-textconv.sh
@@ -29,7 +29,7 @@ test_expect_success 'setup binary file with history' '
 	printf "\\0\\n" >file &&
 	git add file &&
 	git commit -m one &&
-	printf "\\1\\n" >>file &&
+	printf "\\01\\n" >>file &&
 	git add file &&
 	git commit -m two
 '
-- 
1.6.1.rc1.5.gf691f
Next: Jeff King
Message 1 of 3 in “t4030-diff-textconv: Make octal escape sequence more portable”
  1. t4030-diff-textconv: Make octal escape sequence more portableJohannes Sixt, Dec 2, 2008
  2. Jeff KingDec 2, 2008
  3. Junio C HamanoDec 3, 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.