Re: use binmode(STDOUT) in git-status
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Nov 28, 2005, 15:55 UTC
- Message-ID
- <438B2859.6060109@zytor.com>
- In-Reply-To
- <81b0412b0511272334w393434e7lad3e3b102e6c3e9e@mail.gmail.com>
Alex Riesen wrote:
Show 5 quoted lines
> 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.
-hpa