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

3 messages from 2008-12-02 to 2008-12-03. Participants: Johannes Sixt, Jeff King, Junio C Hamano.
Thread: https://gitlist.dev/t/16552

## Johannes Sixt, 2008-12-02 08:31

Subject: [PATCH] t4030-diff-textconv: Make octal escape sequence more portable
Message-ID: <4934F245.9020908@viscovery.net>
URL: https://gitlist.dev/e/4934F245.9020908%40viscovery.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

```

## Jeff King, 2008-12-02 12:54

Subject: Re: [PATCH] t4030-diff-textconv: Make octal escape sequence more portable
Message-ID: <20081202125413.GA12913@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20081202125413.GA12913%40coredump.intra.peff.net
In-Reply-To: <4934F245.9020908@viscovery.net>

```
On Tue, Dec 02, 2008 at 09:31:01AM +0100, Johannes Sixt wrote:

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

Whee. Your fix works fine on my platforms (Solaris + FreeBSD).

> 	I found no other instance of printf backslash-nonzero.

Me either.

-Peff

```

## Junio C Hamano, 2008-12-03 02:18

Subject: Re: [PATCH] t4030-diff-textconv: Make octal escape sequence more portable
Message-ID: <7vhc5mhugy.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vhc5mhugy.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <4934F245.9020908@viscovery.net>

```
Thanks.

```
