git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: use binmode(STDOUT) in git-status

From
TOTim O'Callaghan <timo@dspsrv.com>
Date
Nov 29, 2005, 10:05 UTC
Message-ID
<20051129100550.GA2124@ELSAMSW37164>
In-Reply-To
<7vd5kkvd3q.fsf@assigned-by-dhcp.cox.net>
On Mon, Nov 28, 2005 at 10:31:05AM -0800, Junio C Hamano wrote:
Show 18 quoted lines
> Alex Riesen <raa.lkml@gmail.com> 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.
>

You could also check `perl -v` for the phrase "built for cygwin". I am not sure how much of an issue this is though, because native windows support is going to be a bit tricky without Cygwin as you also need (ba)sh, sed, grep, etc.

Tim.
Previous: Junio C HamanoNext: Johannes Schindelin
Message 10 of 11 in “use binmode(STDOUT) in git-status”
  1. Alex RiesenNov 28, 2005
  2. H. Peter AnvinNov 28, 2005
  3. Johannes SchindelinNov 28, 2005
  4. H. Peter AnvinNov 28, 2005
  5. Johannes SchindelinNov 28, 2005
  6. Alex RiesenNov 29, 2005
  7. [OT] Activision (Re: use binmode(STDOUT) in git-status)Junio C Hamano, Nov 29, 2005
  8. Johannes SchindelinNov 29, 2005
  9. Junio C HamanoNov 28, 2005
  10. Tim O'CallaghanNov 29, 2005
  11. Johannes SchindelinNov 29, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.