This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Should PERLIO=no_crlf be the default on Cygwin?


--------
Gerrit:

Your plan to make PERLIO=no_crlf a default sounded great,
but:

  bash-2.05b$ uname -r;perl -v|grep 'This is'
  1.3.22(0.78/3/2)
  This is perl, v5.8.0 built for cygwin-multi-64int
  bash-2.05b$ printf "\r\n\n"|PERLIO=no_crlf perl -pe '1;'|od -a
  0000000  cr  nl  cr  nl
  0000004

What am I missing, it's still broke.  PERLIO=raw works fine
though.. 

  bash-2.05b$ printf "\r\n\n"|PERLIO=stdio perl -pe '1;'|od -a
  0000000  cr  nl  nl
  0000003
  bash-2.05b$ printf "\r\n\n"|PERLIO=raw perl -pe '1;'|od -a
  0000000  cr  nl  nl
  0000003

thanks much/regards,
--
Tom Rodman
pls run for my address:  
  perl -e 'print unpack("u", "\.\=\$\!T\<F\]D\;6\%N\+F\-O\;0H\`");'

On Fri 5/30/03 17:19 +0200 "Gerrit P. Haase" wrote:
>Hallo Max,
>
<snipped>
>> Is there any way to tell perlio "just let the system (i.e. cygwin) handle
>> things"?
>> That would be a nice default.
>
>I need to patch the sources to do this, but it is no major problem,
>I'm already testing with the patched version and it seems to be the
>best solution to make no_crlf the default for Cygwin, it is also no
>problem then to pull it in everytime it is needed with PERLIO=crlf.
>
>This will save me a lot of trouble responding to the questions why
>Perl writes CRLF by default and that it breaks scripts.  I guess to
>support the other five guys who want Perl to actually write CRLF's
>will be easier;)
>
>Comments?
>
>I'll upload an updated release soon if there are no objections.
>
>
>Gerrit
>-- 
>=^..^=
<snipped>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]