Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
convert.c: replace "\e" escapes with "\033".
author
Beat Bolli
<dev+git@drbeat.li>
Mon, 9 Jul 2018 19:25:34 +0000
(21:25 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 9 Jul 2018 21:36:24 +0000
(14:36 -0700)
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>
convert.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
13f925f
)
diff --git
a/convert.c
b/convert.c
index 64d0d30e08de4acd496bf955d9ce64afa0ff5b8b..edebb946f59cc273c88966cff30e89f60771bcee 100644
(file)
--- 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] : ' '),