зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
13f925f3e4
Коммит
8302f50e8c
|
@ -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] : ' '),
|
||||
|
|
Загрузка…
Ссылка в новой задаче