This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
20 years agoImplement flush of linebuffered streams on read of a tty.
Nick Ing-Simmons [Mon, 26 Mar 2001 17:32:06 +0000 (17:32 +0000)]
Implement flush of linebuffered streams on read of a tty.

p4raw-id: //depot/perlio@9361

20 years agoMemory tweaks and notes for OEMVS.
Nick Ing-Simmons [Mon, 26 Mar 2001 17:12:32 +0000 (17:12 +0000)]
Memory tweaks and notes for OEMVS.

p4raw-id: //depot/perlio@9360

20 years agoFix readline in list mode to tell rest of world that it has
Nick Ing-Simmons [Sun, 25 Mar 2001 22:15:02 +0000 (22:15 +0000)]
Fix readline in list mode to tell rest of world that it has
things on the stack. Otherwise if perl code gets invoked
underneath it it scribbles over results-so-far.
(Why TIEHANDLE has not tripped on this is a mystery.)

p4raw-id: //depot/perlio@9351

20 years agowin32/makefile.mk typos
Nick Ing-Simmons [Sun, 25 Mar 2001 22:10:13 +0000 (22:10 +0000)]
win32/makefile.mk typos

p4raw-id: //depot/perlio@9350

20 years agoIntegrate now-non-binary file.
Nick Ing-Simmons [Sun, 25 Mar 2001 21:31:14 +0000 (21:31 +0000)]
Integrate now-non-binary file.

p4raw-id: //depot/perlio@9349

20 years agoMake it text
Nick Ing-Simmons [Sun, 25 Mar 2001 21:27:24 +0000 (21:27 +0000)]
Make it text

p4raw-id: //depot/perlio@9348

20 years agoIntegrate mainline.
Nick Ing-Simmons [Sun, 25 Mar 2001 21:25:37 +0000 (21:25 +0000)]
Integrate mainline.

p4raw-id: //depot/perlio@9347

20 years agoAdd destruct time hook to PerlIO (for work-in-process implementing
Nick Ing-Simmons [Sun, 25 Mar 2001 20:58:15 +0000 (20:58 +0000)]
Add destruct time hook to PerlIO (for work-in-process implementing
layers in perl code. In such cases layers need to be popped before
we loose the ability to run perl code.)
Also back-out "PerlIO::object" hook - it isn't going to work like that...

p4raw-id: //depot/perlio@9346

20 years agoAvoid at leasy one of undefined warnings in Encode.
Nick Ing-Simmons [Sun, 25 Mar 2001 20:49:11 +0000 (20:49 +0000)]
Avoid at leasy one of undefined warnings in Encode.

p4raw-id: //depot/perlio@9345

20 years agoA workaround for using Term::ReadLine in emacs minibuffer
Jarkko Hietaniemi [Sun, 25 Mar 2001 20:37:43 +0000 (20:37 +0000)]
A workaround for using Term::ReadLine in emacs minibuffer
from Wybo Dekker <wybo@servalys.nl> and Johan Vromans;
additional tweaks from Ilya Zakharevich.

p4raw-id: //depot/perl@9344

20 years agoMissing return value.
Nick Ing-Simmons [Sun, 25 Mar 2001 20:21:14 +0000 (20:21 +0000)]
Missing return value.

p4raw-id: //depot/perlio@9343

20 years agoRoll back the version numbers of Digest::MD5 and MIME::Base64
Jarkko Hietaniemi [Sun, 25 Mar 2001 16:21:00 +0000 (16:21 +0000)]
Roll back the version numbers of Digest::MD5 and MIME::Base64
to equal the CPAN versions since no code changes have been made.

p4raw-id: //depot/perl@9342

20 years agoEscape 8-bit characters.
Jarkko Hietaniemi [Sun, 25 Mar 2001 16:01:48 +0000 (16:01 +0000)]
Escape 8-bit characters.

p4raw-id: //depot/perl@9341

20 years agoreadd mimeqp.t as xtext (used to be binary because of the literal 8-bit
Gurusamy Sarathy [Sun, 25 Mar 2001 15:50:53 +0000 (15:50 +0000)]
readd mimeqp.t as xtext (used to be binary because of the literal 8-bit
chars)

p4raw-id: //depot/perl@9340

20 years agodelete mimeqp.t for later add with text mode set
Gurusamy Sarathy [Sun, 25 Mar 2001 15:48:50 +0000 (15:48 +0000)]
delete mimeqp.t for later add with text mode set

p4raw-id: //depot/perl@9339

20 years agoIntegrate mainline.
Nick Ing-Simmons [Sun, 25 Mar 2001 09:01:57 +0000 (09:01 +0000)]
Integrate mainline.

p4raw-id: //depot/perlio@9338

20 years agoAdd MIME::Base64 here and there. Again, a lot of
Jarkko Hietaniemi [Sun, 25 Mar 2001 04:23:24 +0000 (04:23 +0000)]
Add MIME::Base64 here and there.  Again, a lot of
optimism is in the air.

p4raw-id: //depot/perl@9337

20 years agoAdd PerlIO::Scalar to win32/Makefile. (I'm doing
Jarkko Hietaniemi [Sun, 25 Mar 2001 04:12:43 +0000 (04:12 +0000)]
Add PerlIO::Scalar to win32/Makefile. (I'm doing
this by ear as I do not do Win32 programming.)

p4raw-id: //depot/perl@9336

20 years agoPut back the MD5-Base64 tests now that we have MIME::Base64.
Jarkko Hietaniemi [Sun, 25 Mar 2001 04:03:50 +0000 (04:03 +0000)]
Put back the MD5-Base64 tests now that we have MIME::Base64.

p4raw-id: //depot/perl@9335

20 years agoAdd MIME::Base 2.12 from Gisle Aas, version number bumped to 2.13.
Jarkko Hietaniemi [Sun, 25 Mar 2001 03:58:53 +0000 (03:58 +0000)]
Add MIME::Base 2.12 from Gisle Aas, version number bumped to 2.13.

p4raw-id: //depot/perl@9334

20 years agoIntegrate perlio:
Jarkko Hietaniemi [Sat, 24 Mar 2001 20:14:37 +0000 (20:14 +0000)]
Integrate perlio:

[  9332]
Fix un-init variable leading to spurious "Out of Memory!"

[  9331]
Tweak docs for C<open> (boy does that need wholesale revision...)
and update layers internals doc.

p4raw-link: @9332 on //depot/perlio: fe9745bfc279b016730696fd0a6abca4d493be60
p4raw-link: @9331 on //depot/perlio: b76cc8ba45957a82b545cf2a7b818233e6c0d507

p4raw-id: //depot/perl@9333

20 years agoFix un-init variable leading to spurious "Out of Memory!"
Nick Ing-Simmons [Sat, 24 Mar 2001 19:40:34 +0000 (19:40 +0000)]
Fix un-init variable leading to spurious "Out of Memory!"

p4raw-id: //depot/perlio@9332

20 years agoTweak docs for C<open> (boy does that need wholesale revision...)
Nick Ing-Simmons [Sat, 24 Mar 2001 19:09:59 +0000 (19:09 +0000)]
Tweak docs for C<open> (boy does that need wholesale revision...)
and update layers internals doc.

p4raw-id: //depot/perlio@9331

20 years agoThe length might be uninitialized garbage if the *svp is the undef.
Jarkko Hietaniemi [Sat, 24 Mar 2001 18:42:11 +0000 (18:42 +0000)]
The length might be uninitialized garbage if the *svp is the undef.

p4raw-id: //depot/perl@9330

20 years ago(Retracted by #9393)
Simon Cozens [Sat, 24 Mar 2001 17:13:17 +0000 (17:13 +0000)]
(Retracted by #9393)

Subject: [PATCH h2xs] $!{EINVAL} requires "use Errno"
Message-ID: <20010324171317.A13406@netthink.co.uk>

p4raw-id: //depot/perl@9329

20 years agoIntegrate mainline.
Nick Ing-Simmons [Sat, 24 Mar 2001 17:22:02 +0000 (17:22 +0000)]
Integrate mainline.

p4raw-id: //depot/perlio@9328

20 years agoIntegrate mainline.
Nick Ing-Simmons [Sat, 24 Mar 2001 17:16:02 +0000 (17:16 +0000)]
Integrate mainline.

p4raw-id: //depot/perlio@9327

20 years agoUpgrade to Unicode 3.1 beta 2001-03-23.
Jarkko Hietaniemi [Sat, 24 Mar 2001 17:00:42 +0000 (17:00 +0000)]
Upgrade to Unicode 3.1 beta 2001-03-23.

p4raw-id: //depot/perl@9326

20 years agoRe: B::Deparse bug (5.6.0)
Robin Houston [Sat, 24 Mar 2001 14:33:09 +0000 (14:33 +0000)]
Re: B::Deparse bug (5.6.0)
Message-ID: <20010324143309.B17734@puffinry.freeserve.co.uk>

p4raw-id: //depot/perl@9325

20 years agoBoldly add extensions to be built to VMS, EPOC, UTS,
Jarkko Hietaniemi [Sat, 24 Mar 2001 16:21:56 +0000 (16:21 +0000)]
Boldly add extensions to be built to VMS, EPOC, UTS,
U/WIN, and VM/ESA (and fixups for DJGPP).  Some of
these additions may be too optimistic.

p4raw-id: //depot/perl@9324

20 years agoIntegrate perlio:
Jarkko Hietaniemi [Sat, 24 Mar 2001 16:06:01 +0000 (16:06 +0000)]
Integrate perlio:

[  9322]
Routine Win32 regen_config_h - no real changes.

[  9321]
PerlIO fixups for Win32:
- provide win33_popenlist() - non-functional as yet.
- avoid need for aTHX in PerlIO_debug calls - even if not
enabled args are still evaluated so Win32 has trouble during fork().
- Add PerlIO/Scalar to list of extensions in win32/makefile.mk
- Fixup makedef.pl for latest set of symbols.

[  9320]
POSIX::getcwd XS code to call Cwd::cwd when HAS_GETCWD not defined
was gibberish - broke it on WIn32 at least.

[  9319]
Generated files.

[  9318]
Implement:
1.  open($fh,"+<",undef);  # add test to t/io/open.t
2.  open($fh,"+<",\$var);  # New test t/lib/io_scalar.t

p4raw-link: @9322 on //depot/perlio: e009d45070febfef5a59a9468c3cb4e6ad05051f
p4raw-link: @9321 on //depot/perlio: 8c0134a884f927d58f584b87281e5a27133cbf8f
p4raw-link: @9320 on //depot/perlio: 5dd1177c222be3aa5f44de160a952953bc5703a5
p4raw-link: @9319 on //depot/perlio: c60e0e098045567c2313456d074b4094292b050c
p4raw-link: @9318 on //depot/perlio: f6c77cf1bf4d7cb2c7a64dd7608120b471f84062

p4raw-id: //depot/perl@9323

20 years agoRoutine Win32 regen_config_h - no real changes.
Nick Ing-Simmons [Sat, 24 Mar 2001 14:39:12 +0000 (14:39 +0000)]
Routine Win32 regen_config_h - no real changes.

p4raw-id: //depot/perlio@9322

20 years agoPerlIO fixups for Win32:
Nick Ing-Simmons [Sat, 24 Mar 2001 14:31:49 +0000 (14:31 +0000)]
PerlIO fixups for Win32:
 - provide win33_popenlist() - non-functional as yet.
 - avoid need for aTHX in PerlIO_debug calls - even if not
   enabled args are still evaluated so Win32 has trouble during fork().
 - Add PerlIO/Scalar to list of extensions in win32/makefile.mk
 - Fixup makedef.pl for latest set of symbols.

p4raw-id: //depot/perlio@9321

20 years agoPOSIX::getcwd XS code to call Cwd::cwd when HAS_GETCWD not defined
Nick Ing-Simmons [Sat, 24 Mar 2001 14:26:58 +0000 (14:26 +0000)]
POSIX::getcwd XS code to call Cwd::cwd when HAS_GETCWD not defined
was gibberish - broke it on WIn32 at least.

p4raw-id: //depot/perlio@9320

20 years agoGenerated files.
Nick Ing-Simmons [Sat, 24 Mar 2001 11:29:41 +0000 (11:29 +0000)]
Generated files.

p4raw-id: //depot/perlio@9319

20 years agoImplement:
Nick Ing-Simmons [Sat, 24 Mar 2001 10:29:37 +0000 (10:29 +0000)]
Implement:
 1.  open($fh,"+<",undef);  # add test to t/io/open.t
 2.  open($fh,"+<",\$var);  # New test t/lib/io_scalar.t

p4raw-id: //depot/perlio@9318

20 years agoAIX does seems to have optimization problems with its C compilers.
Jarkko Hietaniemi [Fri, 23 Mar 2001 23:41:25 +0000 (23:41 +0000)]
AIX does seems to have optimization problems with its C compilers.

p4raw-id: //depot/perl@9317

20 years agoIntegrate perlio:
Jarkko Hietaniemi [Fri, 23 Mar 2001 23:40:46 +0000 (23:40 +0000)]
Integrate perlio:

[  9314]
Perlio internals re-organized.
- open process creates AV of layer/arg pairs
(appends layers from open() or open.pm to default list).
- push arg is now an SV.
- layer ->Open get passed the AV
- open is no longer mandatory method.
- topmost layer that has ->Open method does the open
- any layers above are pushed once that returns.
- vtable re-ordered so dummy layers need only provide push/pop methods.

[  9313]
Check in a stable (working) version before next round of tweaks.
Changes include:
- Move default layers code out of doio.c and into perlio.c
- Single routine for parsing layer specification strings.
- Skeleton support for demand loading of layers
- Core-dump avoidance if PERLIO environment specifies loadable layer
(does not _work_ as need IO to load and need load to do IO ...)

[  9305]
Add pTHX_ to -Duseperlio API where it does not conflict with legacy stuff.

[  9304]
Render -Duseperlio functional again.
- this is "quick fix" which calls PerlIO_apply_layers after opening,
which is what old scheme did. New scheme needs to change that
to make open(...,\$scalar) etc. work but this will do for now.

[  9303]
Avoid "reopen" semantics for time being. Fix bug in dup logic.
-Uuseperlio now works again.
-Duseperlio is still poorly. Don't merge yet...

[  9302]
Snapshot of new PerlIO open scheme. Still buggy - mainly in open($fh,">&STDOUT!")
type code.
- Invent PerlIO_openn() - which has "lots" of args a bit like do_openn() which
is its main caller. In particular now has access to "extra" args, and
can tell when an open handle is "reopened" (or duped?).
- In -Duseperlio PerlIO_open() et. al. are now wrappers on PerlIO_openn().
- In -Uuseperlio (untested as yet) PerlIO_openn() is a wrapper on
PerlIO_open() et. al. (i.e. other way round).
- Collapse "vtable" entries for layers - was fdopen/open/reopen now just open
with args close to PerlIO_openn().

p4raw-link: @9314 on //depot/perlio: e3f3bf95bcb81efe35cb0f0d3e3528d5c002dcec
p4raw-link: @9313 on //depot/perlio: 1141d9f89ca1cb89e46951e8afc784c7b4862cd2
p4raw-link: @9305 on //depot/perlio: a999f61be32148694ba1c2837b1a303e42fd96b1
p4raw-link: @9304 on //depot/perlio: 5e334b7bcf49bf053aa25da896a1ff98c12dd228
p4raw-link: @9303 on //depot/perlio: 6e60e805618a52942747f76233ecc85135a964e3
p4raw-link: @9302 on //depot/perlio: ee518936bd3eee0065c20591f5182f733dadd4bd

p4raw-id: //depot/perl@9316

20 years agoFix the EBCDIC MD5.pm checksum, from Pter Prymmer.
Jarkko Hietaniemi [Fri, 23 Mar 2001 22:16:30 +0000 (22:16 +0000)]
Fix the EBCDIC MD5.pm checksum, from Pter Prymmer.

p4raw-id: //depot/perl@9315

20 years agoPerlio internals re-organized.
Nick Ing-Simmons [Fri, 23 Mar 2001 20:49:02 +0000 (20:49 +0000)]
Perlio internals re-organized.
 - open process creates AV of layer/arg pairs
   (appends layers from open() or open.pm to default list).
 - push arg is now an SV.
 - layer ->Open get passed the AV
 - open is no longer mandatory method.
 - topmost layer that has ->Open method does the open
 - any layers above are pushed once that returns.
 - vtable re-ordered so dummy layers need only provide push/pop methods.

p4raw-id: //depot/perlio@9314

20 years agoCheck in a stable (working) version before next round of tweaks.
Nick Ing-Simmons [Fri, 23 Mar 2001 16:27:41 +0000 (16:27 +0000)]
Check in a stable (working) version before next round of tweaks.
Changes include:
 - Move default layers code out of doio.c and into perlio.c
 - Single routine for parsing layer specification strings.
 - Skeleton support for demand loading of layers
 - Core-dump avoidance if PERLIO environment specifies loadable layer
   (does not _work_ as need IO to load and need load to do IO ...)

p4raw-id: //depot/perlio@9313

20 years agoForgot the unneeded hints/dec_osf.pl into MANIFEST in #9308.
Jarkko Hietaniemi [Fri, 23 Mar 2001 14:25:35 +0000 (14:25 +0000)]
Forgot the unneeded hints/dec_osf.pl into MANIFEST in #9308.

p4raw-id: //depot/perl@9311

20 years agoNet::Ping
Colin McMillen [Thu, 22 Mar 2001 19:30:31 +0000 (13:30 -0600)]
Net::Ping
Message-ID: <20010322193031.A18814@strago.jenovaproject.org>

p4raw-id: //depot/perl@9310

20 years agoEBCDIC patches for Digest::MD5 tests from Peter Prymmer.
Jarkko Hietaniemi [Fri, 23 Mar 2001 13:39:13 +0000 (13:39 +0000)]
EBCDIC patches for Digest::MD5 tests from Peter Prymmer.

p4raw-id: //depot/perl@9309

20 years agoIntegrate Digest-1.00 and Digest-MD5-2.13, from Gisle Aas.
Jarkko Hietaniemi [Fri, 23 Mar 2001 13:20:34 +0000 (13:20 +0000)]
Integrate Digest-1.00 and Digest-MD5-2.13, from Gisle Aas.
- bump the version to 2.14
- drop the base64 tests since they require MIME::Base64
- drop the rfc1321.txt
- drop the hints/dec_osf.pl since it's only needed for
  pre-5.005_03 Perls
Todo:
- the U32 alignment testing is now removed; it needs to
  be reintroduced as as a Config variable (meaning also
  as a Configure test)
- get the new EBCDIC md5sum for MD5.pm
- test in Win32 to see how badly I botched the makefiles

p4raw-id: //depot/perl@9308

20 years agoIntegrate change #9306 from maintperl into mainline,
Jarkko Hietaniemi [Fri, 23 Mar 2001 12:56:14 +0000 (12:56 +0000)]
Integrate change #9306 from maintperl into mainline,
AIX dynaloader for AIXes without <load.h>.

p4raw-link: @9306 on //depot/maint-5.6/perl: b9a292f48852cf3cc66c257e67dbf85c05aceb9a

p4raw-id: //depot/perl@9307
p4raw-integrated: from //depot/maint-5.6/perl@9301 'copy in'
ext/DynaLoader/hints/aix.pl (@9250..)

20 years agoAdd pTHX_ to -Duseperlio API where it does not conflict with legacy stuff.
Nick Ing-Simmons [Fri, 23 Mar 2001 11:00:42 +0000 (11:00 +0000)]
Add pTHX_ to -Duseperlio API where it does not conflict with legacy stuff.

p4raw-id: //depot/perlio@9305

20 years agoRender -Duseperlio functional again.
Nick Ing-Simmons [Fri, 23 Mar 2001 10:20:46 +0000 (10:20 +0000)]
Render -Duseperlio functional again.
 - this is "quick fix" which calls PerlIO_apply_layers after opening,
   which is what old scheme did. New scheme needs to change that
   to make open(...,\$scalar) etc. work but this will do for now.

p4raw-id: //depot/perlio@9304

20 years agoAvoid "reopen" semantics for time being. Fix bug in dup logic.
Nick Ing-Simmons [Fri, 23 Mar 2001 09:53:20 +0000 (09:53 +0000)]
Avoid "reopen" semantics for time being. Fix bug in dup logic.
-Uuseperlio now works again.
-Duseperlio is still poorly. Don't merge yet...

p4raw-id: //depot/perlio@9303

20 years agoSnapshot of new PerlIO open scheme. Still buggy - mainly in open($fh,">&STDOUT!")
Nick Ing-Simmons [Thu, 22 Mar 2001 22:26:51 +0000 (22:26 +0000)]
Snapshot of new PerlIO open scheme. Still buggy - mainly in open($fh,">&STDOUT!")
type code.
  - Invent PerlIO_openn() - which has "lots" of args a bit like do_openn() which
    is its main caller. In particular now has access to "extra" args, and
    can tell when an open handle is "reopened" (or duped?).
  - In -Duseperlio PerlIO_open() et. al. are now wrappers on PerlIO_openn().
  - In -Uuseperlio (untested as yet) PerlIO_openn() is a wrapper on
    PerlIO_open() et. al. (i.e. other way round).
  - Collapse "vtable" entries for layers - was fdopen/open/reopen now just open
    with args close to PerlIO_openn().

p4raw-id: //depot/perlio@9302

20 years agoIntegrate perlio:
Jarkko Hietaniemi [Thu, 22 Mar 2001 20:58:04 +0000 (20:58 +0000)]
Integrate perlio:

[  9300]
Don't include $@ in not ok message.

[  9298]
Give a meaning to '&' in n-arg open case:
open($fh,"<&",$scalar);
$scalar can be:
- an integer which does "fdopen"
open($fh,"<&",2); # like open($fh,"<&2")
- something that will yield a file handle via sv_2io()
useful for dup'ing anonymous handles.
e.g.:
open(my $fh,"<&",\*STDIN);
open(my $dup,"<&",$fh);

[  9297]
Implement open($fh,"-|",prog,args...) for HAS_FORK cases.

[  9296]
Re-instate warnings for 'eof STDOUT' etc. by marking STD* as appropriate IoTYPE.

[  9295]
If stdin, stdout or stderr get opened in unexpected read/write state
then warn at time of open not at time of use.

[  9294]
Die on n-arg open(...,"",xxx,yyy,...)
- redirect pipe cases to PerlProc_popen_list() (which just croaks for now)
- die on read/write cases so we can decide what it means later.

[  9293]
perlio tweaks (reported by Nicholas Clark)
Line buffer ttys, PerlIOBuf_tell() on unseekable off-by one,
error check in Pendinf_read().

p4raw-link: @9300 on //depot/perlio: 4fbc943a81ac8168e4ba63497561c515427127d8
p4raw-link: @9298 on //depot/perlio: e620cd7232b242c1500abd8a6a5b86efdf1c5c2b
p4raw-link: @9297 on //depot/perlio: 1f852d0d1f9745d51afb4cb836d527bbbac0c64e
p4raw-link: @9296 on //depot/perlio: a04651f440b69a3f6af9f5fcf427068253775945
p4raw-link: @9295 on //depot/perlio: a00b5bd33cb12556305f4526d4870e67e2ca9517
p4raw-link: @9294 on //depot/perlio: 4a7d1889681c73a99b9a39d8a3d3760367674002
p4raw-link: @9293 on //depot/perlio: 1f47406448f2d51ae8241e146df3675f96b72815

p4raw-id: //depot/perl@9301

20 years agoDon't include $@ in not ok message.
Nick Ing-Simmons [Thu, 22 Mar 2001 17:36:32 +0000 (17:36 +0000)]
Don't include $@ in not ok message.

p4raw-id: //depot/perlio@9300

20 years agoGive a meaning to '&' in n-arg open case:
Nick Ing-Simmons [Thu, 22 Mar 2001 14:35:46 +0000 (14:35 +0000)]
Give a meaning to '&' in n-arg open case:
  open($fh,"<&",$scalar);
  $scalar can be:
  - an integer which does "fdopen"
    open($fh,"<&",2); # like open($fh,"<&2")
  - something that will yield a file handle via sv_2io()
    useful for dup'ing anonymous handles.
    e.g.:
    open(my $fh,"<&",\*STDIN);
    open(my $dup,"<&",$fh);

p4raw-id: //depot/perlio@9298

20 years agoImplement open($fh,"-|",prog,args...) for HAS_FORK cases.
Nick Ing-Simmons [Thu, 22 Mar 2001 13:34:35 +0000 (13:34 +0000)]
Implement open($fh,"-|",prog,args...) for HAS_FORK cases.

p4raw-id: //depot/perlio@9297

20 years agoRe-instate warnings for 'eof STDOUT' etc. by marking STD* as appropriate IoTYPE.
Nick Ing-Simmons [Thu, 22 Mar 2001 12:51:20 +0000 (12:51 +0000)]
Re-instate warnings for 'eof STDOUT' etc. by marking STD* as appropriate IoTYPE.

p4raw-id: //depot/perlio@9296

20 years agoIf stdin, stdout or stderr get opened in unexpected read/write state
Nick Ing-Simmons [Thu, 22 Mar 2001 11:59:44 +0000 (11:59 +0000)]
If stdin, stdout or stderr get opened in unexpected read/write state
then warn at time of open not at time of use.

p4raw-id: //depot/perlio@9295

20 years agoDie on n-arg open(...,"",xxx,yyy,...)
Nick Ing-Simmons [Thu, 22 Mar 2001 10:54:35 +0000 (10:54 +0000)]
Die on n-arg open(...,"",xxx,yyy,...)
 - redirect pipe cases to PerlProc_popen_list() (which just croaks for now)
 - die on read/write cases so we can decide what it means later.

p4raw-id: //depot/perlio@9294

20 years agoperlio tweaks (reported by Nicholas Clark)
Nick Ing-Simmons [Thu, 22 Mar 2001 09:02:45 +0000 (09:02 +0000)]
perlio tweaks (reported by Nicholas Clark)
Line buffer ttys, PerlIOBuf_tell() on unseekable off-by one,
error check in Pendinf_read().

p4raw-id: //depot/perlio@9293

20 years agoRegex tests from Chicheng Zhang. (Already fixed.)
Jarkko Hietaniemi [Thu, 22 Mar 2001 06:06:44 +0000 (06:06 +0000)]
Regex tests from Chicheng Zhang.  (Already fixed.)

p4raw-id: //depot/perl@9291

20 years agoIntegrate perlio:
Jarkko Hietaniemi [Wed, 21 Mar 2001 20:30:54 +0000 (20:30 +0000)]
Integrate perlio:

[  9285]
Multiplicity fix for Dumper.

p4raw-link: @9285 on //depot/perlio: 6cde4e9429924ded8fa67b82555e7528e0d47b56

p4raw-id: //depot/perl@9287

20 years agoMultiplicity fix for Dumper.
Nick Ing-Simmons [Wed, 21 Mar 2001 19:07:13 +0000 (19:07 +0000)]
Multiplicity fix for Dumper.

p4raw-id: //depot/perlio@9285

20 years agoIntegrate mainline - (does not build xTHX issue in Dumper).
Nick Ing-Simmons [Wed, 21 Mar 2001 19:01:07 +0000 (19:01 +0000)]
Integrate mainline - (does not build xTHX issue in Dumper).

p4raw-id: //depot/perlio@9284

20 years agoThe #9270 would have leaked a scalar if pp_substr()
Jarkko Hietaniemi [Wed, 21 Mar 2001 17:15:43 +0000 (17:15 +0000)]
The #9270 would have leaked a scalar if pp_substr()
returned early.

p4raw-id: //depot/perl@9282

20 years agoMore pixie cleaning.
Jarkko Hietaniemi [Wed, 21 Mar 2001 13:33:00 +0000 (13:33 +0000)]
More pixie cleaning.

p4raw-id: //depot/perl@9276

20 years agoUpdate Changes.
Jarkko Hietaniemi [Wed, 21 Mar 2001 03:54:17 +0000 (03:54 +0000)]
Update Changes.

p4raw-id: //depot/perl@9275

20 years agoFirst stab at making Data::Dumper to grok Unicode.
Jarkko Hietaniemi [Wed, 21 Mar 2001 03:48:24 +0000 (03:48 +0000)]
First stab at making Data::Dumper to grok Unicode.

TODO: tests, EBCDICify.

p4raw-id: //depot/perl@9274

20 years agoFix for
Benjamin Sugars [Tue, 20 Mar 2001 10:02:56 +0000 (05:02 -0500)]
Fix for

Subject: Memory leak in unquoted print
Message-ID: <Pine.LNX.4.21.0103200958180.1538-100000@marmot.rim.canoe.ca>

p4raw-id: //depot/perl@9273

20 years agoRe: [PATCH] POSIX::getcwd()
Benjamin Sugars [Mon, 19 Mar 2001 15:07:03 +0000 (10:07 -0500)]
Re: [PATCH] POSIX::getcwd()
Message-ID: <Pine.LNX.4.21.0103191454500.1820-100000@marmot.rim.canoe.ca>

p4raw-id: //depot/perl@9272

20 years agoCwd.pm docs
Benjamin Sugars [Tue, 20 Mar 2001 15:33:32 +0000 (10:33 -0500)]
Cwd.pm docs
Message-ID: <Pine.LNX.4.21.0103201516550.7893-100000@marmot.rim.canoe.ca>

p4raw-id: //depot/perl@9271

20 years agoContinue 4-arg substr() UTF-8 fixage.
Jarkko Hietaniemi [Wed, 21 Mar 2001 01:16:29 +0000 (01:16 +0000)]
Continue 4-arg substr() UTF-8 fixage.

p4raw-id: //depot/perl@9270

20 years agoIntegrate changes #9262,9264,9265,9266 from maintperl to mainline.
Jarkko Hietaniemi [Wed, 21 Mar 2001 00:46:14 +0000 (00:46 +0000)]
Integrate changes #9262,9264,9265,9266 from maintperl to mainline.

revert the leak fix in change#9142 (problem needs a more experimental
fix unsuitable for 5.6.1)

do alphabetical sorting by default (for csh compatibility)

cut-n-paste goof in change#9264

VMS piping fixes (from Charles Lane)

p4raw-link: @9266 on //depot/maint-5.6/perl: 72d1c956969523b19a71b5ffb5af9479f09d0e6a
p4raw-link: @9265 on //depot/maint-5.6/perl: 8549c3fc2da30e970df00a46a796a39e843777aa
p4raw-link: @9264 on //depot/maint-5.6/perl: 1086ad2319c3ee3e3873c478e76309ea4f03453b
p4raw-link: @9262 on //depot/maint-5.6/perl: a89eb504d1201e0dad09aaf86db07d000904f216
p4raw-link: @9142 on //depot/maint-5.6/perl: 26972843796e21c404c9d13ec5ee86e7b952a2bd

p4raw-id: //depot/perl@9269
p4raw-integrated: from //depot/maint-5.6/perl@9268 'copy in'
ext/File/Glob/Changes ext/File/Glob/bsd_glob.c
ext/File/Glob/bsd_glob.h (@5902..) ext/File/Glob/Glob.pm
(@7770..) vms/vmspipe.com (@8636..) vms/vms.c (@8986..) 'edit
in' ext/File/Glob/Glob.xs (@9264..) 'merge in' scope.c
(@9142..)

20 years agoIntegrate perlio:
Jarkko Hietaniemi [Wed, 21 Mar 2001 00:37:04 +0000 (00:37 +0000)]
Integrate perlio:

[  9267]
More EBCDIC stuff:
- Loose the extra level of function on ASCII.
- spotted a chr(0) issue in sv.c
- re-work of UTF-X tr/// ranges to work in Unicode
space. Still issues with the "0xff is illegal UTF-8" hack.
- Yet another ad. hoc. utf8 'upgrade' in op.c recoded
(why do it once when you can do it all over the place :-(
- Enable HINTS_UTF8 on EBCDIC - then ignore it in toke.c,
need utf8.pm for swashes.
- Simplified and commented scan_const() in toke.c
Still something wrong regexp and tr (swashes?).

p4raw-link: @9267 on //depot/perlio: 2b9d42f0ba1bb562fe21327dc7948ab1a5397a19

p4raw-id: //depot/perl@9268

20 years agoMore EBCDIC stuff:
Nick Ing-Simmons [Tue, 20 Mar 2001 20:04:39 +0000 (20:04 +0000)]
More EBCDIC stuff:
 - Loose the extra level of function on ASCII.
 - spotted a chr(0) issue in sv.c
 - re-work of UTF-X tr/// ranges to work in Unicode
   space. Still issues with the "0xff is illegal UTF-8" hack.
 - Yet another ad. hoc. utf8 'upgrade' in op.c recoded
   (why do it once when you can do it all over the place :-(
 - Enable HINTS_UTF8 on EBCDIC - then ignore it in toke.c,
   need utf8.pm for swashes.
 - Simplified and commented scan_const() in toke.c
Still something wrong regexp and tr (swashes?).

p4raw-id: //depot/perlio@9267

20 years agoIntegrate changes #9259,9260 from maintperl into mainline.
Jarkko Hietaniemi [Tue, 20 Mar 2001 14:26:25 +0000 (14:26 +0000)]
Integrate changes #9259,9260 from maintperl into mainline.

Subject: [MacPerl-Porters] [PATCH] POSIX, File::Path (Mac OS) for 5.6.1 and 5.7

Subject: [PATCH perl-5.6.1-TRIAL3/run.c] printf warning

p4raw-link: @9260 on //depot/maint-5.6/perl: b83ee361c1b8f0045f0125bffa546780643848c4
p4raw-link: @9259 on //depot/maint-5.6/perl: 5a271d91b72f558a378756b049d1040c9ff0a63c

p4raw-id: //depot/perl@9261
p4raw-integrated: from //depot/maint-5.6/perl@9258 'copy in'
lib/File/Path.pm (@8175..) 'merge in' ext/POSIX/POSIX.xs
(@8885..) run.c (@8987..)

20 years agoUpdate Changes.
Jarkko Hietaniemi [Tue, 20 Mar 2001 05:09:34 +0000 (05:09 +0000)]
Update Changes.

p4raw-id: //depot/perl@9258

20 years agotr/// UTF-8 tests for Inaba Hiroto's latest patches.
Jarkko Hietaniemi [Tue, 20 Mar 2001 05:04:25 +0000 (05:04 +0000)]
tr/// UTF-8 tests for Inaba Hiroto's latest patches.

p4raw-id: //depot/perl@9257

20 years agosubstr($bytestr, i, n, $charstr)
Jarkko Hietaniemi [Mon, 19 Mar 2001 23:17:17 +0000 (23:17 +0000)]
substr($bytestr, i, n, $charstr)

TODO: we are still broken if $bytestr needs UTF-8 upgrading.

p4raw-id: //depot/perl@9255

20 years agoRearrange the make test target prerequisites so that
Jarkko Hietaniemi [Mon, 19 Mar 2001 22:25:09 +0000 (22:25 +0000)]
Rearrange the make test target prerequisites so that
in a parallel make 'all' is finished before 'test'.

p4raw-id: //depot/perl@9254

20 years agoPATCH: cosmetic tweak in pp_ctl.c
Robin Houston [Mon, 19 Mar 2001 15:48:41 +0000 (15:48 +0000)]
PATCH: cosmetic tweak in pp_ctl.c
Message-ID: <20010319154841.A28174@puffinry.freeserve.co.uk>

p4raw-id: //depot/perl@9253

20 years agoIntegrate perlio:
Jarkko Hietaniemi [Mon, 19 Mar 2001 21:42:27 +0000 (21:42 +0000)]
Integrate perlio:

[  9248]
Tweak to perly.y to allow -DDEBUGGING to compile on OS390.
(Building on OS390 uses native YACC and YYDEBUG has other
side effects.)

[  9246]
More EBCDIC fixes.

p4raw-link: @9248 on //depot/perlio: 1e0e26cb26fde01fd11e7cf9703ff3045aed4e51
p4raw-link: @9246 on //depot/perlio: c4d5f83add3e03ac76c328ed8a29701d939174ce

p4raw-id: //depot/perl@9252

20 years agoIntegrate changes #9244,9247,9250 from maintperl into mainline.
Jarkko Hietaniemi [Mon, 19 Mar 2001 21:31:28 +0000 (21:31 +0000)]
Integrate changes #9244,9247,9250 from maintperl into mainline.

Dynaloading in 64-bit AIX with vac.

p4raw-link: @9250 on //depot/maint-5.6/perl: cbdca039b5e144d1778a3f526024bb6da2a58a72
p4raw-link: @9247 on //depot/maint-5.6/perl: 1d70f4d9891a32fb9ebe5b896f754b8c759ffece
p4raw-link: @9244 on //depot/maint-5.6/perl: f816f13eaa91bfe02a64ccda4a80eee889237c24

p4raw-id: //depot/perl@9251
p4raw-integrated: from //depot/maint-5.6/perl@9243 'copy in'
ext/DynaLoader/hints/aix.pl (@5902..) ext/DynaLoader/dl_aix.xs
(@9247..) 'merge in' hints/aix.sh (@8537..)

20 years agoIntegrate mainline.
Nick Ing-Simmons [Mon, 19 Mar 2001 20:59:37 +0000 (20:59 +0000)]
Integrate mainline.

p4raw-id: //depot/perlio@9249

20 years agoTweak to perly.y to allow -DDEBUGGING to compile on OS390.
Nick Ing-Simmons [Mon, 19 Mar 2001 20:22:07 +0000 (20:22 +0000)]
Tweak to perly.y to allow -DDEBUGGING to compile on OS390.
(Building on OS390 uses native YACC and YYDEBUG has other
 side effects.)

p4raw-id: //depot/perlio@9248

20 years agoMore EBCDIC fixes.
Nick Ing-Simmons [Mon, 19 Mar 2001 19:27:57 +0000 (19:27 +0000)]
More EBCDIC fixes.

p4raw-id: //depot/perlio@9246

20 years agobad =item paragraphs
Robin Barker [Mon, 19 Mar 2001 18:01:57 +0000 (18:01 +0000)]
bad =item paragraphs
Message-Id: <200103191801.SAA01072@tempest.npl.co.uk>

p4raw-id: //depot/perl@9243

20 years agoUTF-8 tr/// battle continues, ammunition from Inaba Hiroto.
Jarkko Hietaniemi [Mon, 19 Mar 2001 18:58:43 +0000 (18:58 +0000)]
UTF-8 tr/// battle continues, ammunition from Inaba Hiroto.

TODO: tests.

p4raw-id: //depot/perl@9242

20 years agoIntegrate change #9233 from maintperl into mainline.
Jarkko Hietaniemi [Mon, 19 Mar 2001 14:24:26 +0000 (14:24 +0000)]
Integrate change #9233 from maintperl into mainline.

some refcounts were incorrect in perl_clone()

p4raw-link: @9233 on //depot/maint-5.6/perl: dca1bc40364bec892edf18517ed5e3c914edecc6

p4raw-id: //depot/perl@9240
p4raw-integrated: from //depot/maint-5.6/perl@9233 'merge in' sv.c
(@9197..)

20 years agoIntegrate change #9219 from maintperl into mainline.
Jarkko Hietaniemi [Mon, 19 Mar 2001 02:07:38 +0000 (02:07 +0000)]
Integrate change #9219 from maintperl into mainline.

remove duplicated tests

p4raw-link: @9219 on //depot/maint-5.6/perl: d25866bd13dc76915b2d6894a02c852f6a2dd720

p4raw-id: //depot/perl@9225
p4raw-integrated: from //depot/maint-5.6/perl@9223 'copy in'
t/op/re_tests (@8780..)

20 years agoDocument -Dmksymlinks.
Jarkko Hietaniemi [Mon, 19 Mar 2001 02:01:25 +0000 (02:01 +0000)]
Document -Dmksymlinks.

p4raw-id: //depot/perl@9223

20 years agoCleanup pixie residue.
Jarkko Hietaniemi [Mon, 19 Mar 2001 00:49:43 +0000 (00:49 +0000)]
Cleanup pixie residue.

p4raw-id: //depot/perl@9221

20 years agoDocument the use of pixie/prof; create make targets for it.
Jarkko Hietaniemi [Mon, 19 Mar 2001 00:44:47 +0000 (00:44 +0000)]
Document the use of pixie/prof; create make targets for it.

TODO: make t/TEST pixie-aware.

p4raw-id: //depot/perl@9220

20 years agoDocument Third Degree some more, and also PERL_DESTRUCT_LEVEL.
Jarkko Hietaniemi [Sun, 18 Mar 2001 23:59:31 +0000 (23:59 +0000)]
Document Third Degree some more, and also PERL_DESTRUCT_LEVEL.

p4raw-id: //depot/perl@9218

20 years agoRewrite the tests section of Makefile to be less redundant
Jarkko Hietaniemi [Sun, 18 Mar 2001 23:25:20 +0000 (23:25 +0000)]
Rewrite the tests section of Makefile to be less redundant
and to allow for more flexible test targets, many recursive
make calls introduced.

p4raw-id: //depot/perl@9217

20 years agoDocument the use of Third Degree (sparsely).
Jarkko Hietaniemi [Sun, 18 Mar 2001 22:30:04 +0000 (22:30 +0000)]
Document the use of Third Degree (sparsely).

p4raw-id: //depot/perl@9216

20 years agoMake targets for testing with Third Degree.
Jarkko Hietaniemi [Sun, 18 Mar 2001 22:10:30 +0000 (22:10 +0000)]
Make targets for testing with Third Degree.

p4raw-id: //depot/perl@9215

20 years agoThe podchecker relaxations need to mirrored also at the tests.
Jarkko Hietaniemi [Sun, 18 Mar 2001 21:08:53 +0000 (21:08 +0000)]
The podchecker relaxations need to mirrored also at the tests.

p4raw-id: //depot/perl@9214

20 years agoUpdate Changes.
Jarkko Hietaniemi [Sun, 18 Mar 2001 20:56:21 +0000 (20:56 +0000)]
Update Changes.

p4raw-id: //depot/perl@9213

20 years agoLooking for config.sh in parent directories isn't
Jarkko Hietaniemi [Sun, 18 Mar 2001 20:36:59 +0000 (20:36 +0000)]
Looking for config.sh in parent directories isn't
very useful for the toplevel Makefile.

p4raw-id: //depot/perl@9212

20 years agoOn "make clean" take care of Third Degree droppings.
Jarkko Hietaniemi [Sun, 18 Mar 2001 20:33:37 +0000 (20:33 +0000)]
On "make clean" take care of Third Degree droppings.

p4raw-id: //depot/perl@9211

20 years agoAdd a hook for running the tests under the Third Degree
Jarkko Hietaniemi [Sun, 18 Mar 2001 20:21:34 +0000 (20:21 +0000)]
Add a hook for running the tests under the Third Degree
debugging tool (set $ENV{PERL_3LOG} to non-zero)

TODO: Document the use of Third Degree.

p4raw-id: //depot/perl@9210