Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: git log doesn't allow %x00 in custom format anymore?

From: Jeff King <hidden>
Date: 2016-06-15 22:49:43

On Thu, Oct 07, 2010 at 07:52:42PM +0200, Matthieu Moy wrote:
Erik Faye-Lund [off-list ref] writes:
quoted
Also, fwriting like that to stdout might be a bit troublesome on
Windows because the string won't end up going through our
ANSI-emulation.
I don't know which one would be most portable, but if fwrite is the
problem, then

  printf("%*s%c", buf.buf, buf.len, info->hdr_termination);

should do the trick.
It does work, but you have to cast the buf.len size_t to an int.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help