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

Re: use binmode(STDOUT) in git-status

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:13

Hi,

On Mon, 28 Nov 2005, H. Peter Anvin wrote:
Alex Riesen wrote:
quoted
Activision's Perl generates CRLF unless STDOUT is binmoded, which is
inconsistent with other output of git-status.

---
I assume none _sane_ can want CRLF as line-ending...
Well, if it's a text file we probably should use platform-native line-ending,
and at least be tolerant of \r\n.
Of course, here is the problem: git on Windows runs only using cygwin. You 
can specify the line ending behaviour of cygwin (I think it is an env 
variable). Activision Perl, being independent of cygwin, does not care 
about that setting.

So, to be accurate, you'd have to check what *cygwin* expects, and 
depending on that execute binmode(STDOUT) or not.

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