summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Beat Bolli <dev+git@drbeat.li>2018-07-09 21:25:34 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-09 14:36:24 -0700
commit8302f50e8ce687fbb09d8639ef87c0d35fd671b9 (patch)
tree4fe6b76f8a976cc67dd2d6b4f4c1db9d62642d7f
parentfixup! refs/refs-internal.h: avoid forward declaration of an enum (diff)
downloadtgif-8302f50e8ce687fbb09d8639ef87c0d35fd671b9.tar.xz
convert.c: replace "\e" escapes with "\033".
The "\e" escape is not defined in ISO C. While on this line, add a missing space after the comma. Signed-off-by: Beat Bolli <dev+git@drbeat.li> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert.c b/convert.c
index 64d0d30e08..edebb946f5 100644
--- a/convert.c
+++ b/convert.c
@@ -334,7 +334,7 @@ static void trace_encoding(const char *context, const char *path,
strbuf_addf(&trace, "%s (%s, considered %s):\n", context, path, encoding);
for (i = 0; i < len && buf; ++i) {
strbuf_addf(
- &trace,"| \e[2m%2i:\e[0m %2x \e[2m%c\e[0m%c",
+ &trace, "| \033[2m%2i:\033[0m %2x \033[2m%c\033[0m%c",
i,
(unsigned char) buf[i],
(buf[i] > 32 && buf[i] < 127 ? buf[i] : ' '),