Re: git log doesn't allow %x00 in custom format anymore?
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Oct 7, 2010, 17:52 UTC
- Message-ID
- <vpqaamp3n6d.fsf@bauges.imag.fr>
- In-Reply-To
- <AANLkTimYVNNjhaqUHjoVOV-fQBhcENKn7cyj10qcZ+MW@mail.gmail.com>
Erik Faye-Lund <kusmabite@gmail.com> writes:
> 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.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/