Thread (9 messages) flat view 9 messages, 5 authors, 2016-06-15

Re: use binmode(STDOUT) in git-status

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:13

Alex Riesen [off-list ref] writes:
Activision's Perl generates CRLF unless STDOUT is binmoded, which is
inconsistent with other output of git-status.
I do not think this is a kind of patch that I should accept to
apply to the generic part of the codepath, even if on sane
platforms binmode() could be a no-op.

You should not have to say binmode() when you are emitting plain
text (otherwise you have to say that everywhere which is
madness).  I presume the Cygwin version uses Perl from Cygwin
and would not have this problem?

If that is the case, maybe this patch should be maintained out
of tree by the maintainer of Windows port of git that does _not_
use Cygwin but ActiveState.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help