From: Junio C Hamano Date: Tue, 03 Jan 2012 19:42:01 GMT Subject: Re: [PATCH 1/2] git-svn, perl/Git.pm: add central method for prompting passwords honoring GIT_ASKPASS and SSH_ASKPASS Message-ID: <7v4nwcvaie.fsf@alter.siamese.dyndns.org> In-Reply-To: Ævar Arnfjörð Bjarmason writes: > And how about this: > > perl -MData::Dumper -MFile::Temp=tempfile -we 'my $str = > "moo\015\012"; my ($fh, $name) = tempfile(); print $fh $str; close > $fh; open my $in, "<:crlf", $name or die $!; my $in_str = <$in>; > chomp(my $cin_str = $in_str); print "in_str:<$in_str> > cin_str:<$cin_str> END\n"' > > It could be that there's some bug in either perl or mingw's build of > perl where it won't turn on the :crlf IO layer by default. I agree that PERLIO may be a solution that is supposed to work, but let's not go there, at least not yet in this patch. The stripping of \015\012 (not \r\n) was copied from the original code and I would prefer to see the patch focus on one primary thing it wants to enhance at a time. Thanks.