summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-30 05:44:21 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-30 05:44:21 +0000
commitc39cd00800303e8967294e98aa4c427a1872a251 (patch)
treeee7d7e65e692fcdfd54f0c6a7b3746a07023aa6e /win32/win32.c
parent2dc4c65bf2b389aa184a8e8590cd1ee37ec953bc (diff)
downloadperl-c39cd00800303e8967294e98aa4c427a1872a251.tar.gz
enable the PERL_BINMODE_SCRIPTS behavior by default on Windows
to allow ByteLoader to work; the DATA filehandles continue to be left open in text mode for compatibility p4raw-id: //depot/perl@4739
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ae22a60927..53288af338 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3688,31 +3688,6 @@ Perl_win32_init(int *argcp, char ***argvp)
MALLOC_INIT;
}
-#ifdef USE_BINMODE_SCRIPTS
-
-void
-win32_strip_return(SV *sv)
-{
- char *s = SvPVX(sv);
- char *e = s+SvCUR(sv);
- char *d = s;
- while (s < e)
- {
- if (*s == '\r' && s[1] == '\n')
- {
- *d++ = '\n';
- s += 2;
- }
- else
- {
- *d++ = *s++;
- }
- }
- SvCUR_set(sv,d-SvPVX(sv));
-}
-
-#endif
-
#ifdef USE_ITHREADS
# ifdef PERL_OBJECT