Skip to content

Commit 8302f50

Browse files
bbolligitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 13f925f commit 8302f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static void trace_encoding(const char *context, const char *path,
334334
strbuf_addf(&trace, "%s (%s, considered %s):\n", context, path, encoding);
335335
for (i = 0; i < len && buf; ++i) {
336336
strbuf_addf(
337-
&trace,"| \e[2m%2i:\e[0m %2x \e[2m%c\e[0m%c",
337+
&trace, "| \033[2m%2i:\033[0m %2x \033[2m%c\033[0m%c",
338338
i,
339339
(unsigned char) buf[i],
340340
(buf[i] > 32 && buf[i] < 127 ? buf[i] : ' '),

0 commit comments

Comments
 (0)