summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-05-11 03:39:07 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-05-11 03:39:07 +0000
commit52853b95ebed443e023862f2a1db2614404699e5 (patch)
tree716f2d199f85543401f4e5818d0eaa6d67d6baf1 /perl.c
parentb4bcd66247e5bc9051bd228e0f63bc1a5ffcf2a7 (diff)
downloadperl-52853b95ebed443e023862f2a1db2614404699e5.tar.gz
PL_sys_intern was being initialized too late on windows
p4raw-id: //depot/perl@6104
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 6244753eb3..acf3bd8d41 100644
--- a/perl.c
+++ b/perl.c
@@ -272,6 +272,10 @@ perl_construct(pTHXx)
PL_localpatches = local_patches; /* For possible -v */
#endif
+#ifdef HAVE_INTERP_INTERN
+ sys_intern_init();
+#endif
+
PerlIO_init(); /* Hook to IO system */
PL_fdpid = newAV(); /* for remembering popen pids by fd */
@@ -2505,7 +2509,7 @@ S_open_script(pTHX_ char *scriptname, bool dosearch, SV *sv, int *fdscript)
sv_catpvn(sv, "-I", 2);
sv_catpv(sv,PRIVLIB_EXP);
-#ifdef MSDOS
+#if defined(MSDOS) || defined(WIN32)
Perl_sv_setpvf(aTHX_ cmd, "\
sed %s -e \"/^[^#]/b\" \
-e \"/^#[ ]*include[ ]/b\" \