| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
(courtesy of Mark Bixby)
p4raw-id: //depot/perl@10524
|
|
|
| |
p4raw-id: //depot/perl@10338
|
|
|
|
|
| |
and Abhijit Menon-Sen.
p4raw-id: //depot/perl@10321
|
|
|
|
|
| |
for microperl.)
p4raw-id: //depot/perl@10233
|
|
|
|
|
|
|
|
|
|
|
| |
Date: Sat, 26 May 2001 20:05:23 -0400
Message-ID: <15120.17603.148648.12430@rls.cx>
Subject: Re: [PATCH] [ID 19991013.005] utime undef, undef, @files
From: rspier@pobox.com (Robert Spier)
Date: Sun, 27 May 2001 00:23:12 -0400
Message-ID: <15120.33072.511966.767230@rls.cx>
p4raw-id: //depot/perl@10232
|
|
|
|
|
| |
Message-Id: <a05100e0ab734816701a5@[172.16.52.1]>
p4raw-id: //depot/perl@10218
|
|
|
| |
p4raw-id: //depot/perl@10172
|
|
|
|
|
| |
Message-Id: <5.0.2.1.0.20010502112909.01f24e28@24.8.96.48>
p4raw-id: //depot/perl@9960
|
|
|
| |
p4raw-id: //depot/perl@9802
|
|
|
|
|
| |
open(STDOUT,">",\$foo);
p4raw-id: //depot/perlio@9766
|
|
|
| |
p4raw-id: //depot/perlio@9549
|
|
|
| |
p4raw-id: //depot/perlio@9332
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
-Uuseperlio now works again.
-Duseperlio is still poorly. Don't merge yet...
p4raw-id: //depot/perlio@9303
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
then warn at time of open not at time of use.
p4raw-id: //depot/perlio@9295
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
| |
Message-ID: <15006.42826.747914.669893@ix.netsoft.ro>
Fixes the bugs 20010221.005 and 20010221.008: "the taint checker
was checking argv[0] regardless of whether a different pathname
will actually be executed." Test case not supplied because
drafting that, ironically enough, revealed another bug
(or a feature).
p4raw-id: //depot/perl@8982
|
|
|
|
|
|
|
|
| |
In-Reply-To: <20010227140737.Y10633@chaos.wustl.edu>
Message-ID: <Pine.LNX.4.30.0102271322070.8623-100000@lapaki.jach.hawaii.edu>
Replace djSP with dSP.
p4raw-id: //depot/perl@8963
|
|
|
|
|
| |
Message-ID: <Pine.LNX.4.21.0102161519500.30352-100000@mako.covalent.net>
p4raw-id: //depot/perl@8815
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- canonical UTF-8 hash keys: if a key string for a hash is
UTF8-on, try downgrade the string and use it if
unicode::distinct is not in effect.
For the task, I added a function bytes_from_utf8() to utf8.c.
It might resemble utf8_to_bytes() but it is not convenient
to the task.
Made a test for it and added to t/op/each.t
- Changed do_print in doio.c to apply sv_utf8_(downgrade|upgrade) to
the mortal copy of the argument SV.
And changed t/io/utf8.t test 18 which expects print() to
upgrade its argument.
- re-implement sv_eq with bytes_from_utf8()
- some bug fixes
- tr/// does not handle UTF8 range (\x{}-\x{})
- \ before raw UTF8 character produced
"Malformed UTF-8 character" warning.
- "\x{100}\N{CENT SIGN}" is Malformed.
Added tests for these 3.
- and one silly bug (by me) with qu operator.
p4raw-id: //depot/perl@8583
|
|
|
|
|
|
|
|
|
|
| |
open($fh,"|-",@array);
to be implemented
i.e. mark pp_open as needing a stack mark, and make pp_open
process its args in that style (and pass them _all_ to tied handles OPEN).
Invent do_openn() which takes SV ** at allow it to see multiple args.
Note this does not _do_ anything yet.
p4raw-id: //depot/perlio@8484
|
|
|
| |
p4raw-id: //depot/perl@8289
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In summary, error messages produced when a subprocess terminated
abnormally were being sent not just to the parent process, but to
grandparents, because of default values for error output that were
not completely overridden when the subprocess was started.
This patch fixes this behavior by defining user-mode (i.e., temporary
for the duration of the program) logical names for SYS$OUTPUT and
SYS$ERROR when they are (re)opened inside Perl. And a bunch of other
changes to make it so that the user-mode logicals are the ones that
control where Perl's error messages go if it terminates abnormally.
I also added some gratuitous fixes to the indentation of braces in
the piping code. It just looked ugly, before.
p4raw-id: //depot/perl@8257
|
|
|
|
|
| |
Message-ID: <20001211231638.A55550@plum.flirble.org>
p4raw-id: //depot/perl@8097
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(sysread, recv and write i.e. formats still to do...)
Allow :utf8 or :bytes in PerlIO_apply_layers() so that
open($fh,">:utf8","name")
etc. work. - "applying" those just sets/clears the UTF8 bit of the top layer,
so no extra overhead is involved.
Tweak t/comp/require.t to add a 'use bytes' to permit its dubious writing of BOM
to a non-utf8 stream.
Add initial io/utf8.t
Fix SvPVutf8() - sv_2pv() was not expecting to be called with something
that was already SvPOK() - (we just fossiked with SvUTF8 bit). Fix that
and also just use the SvPV macro in sv_2pvutf8() to avoid the issue/overhead.
p4raw-id: //depot/perlio@8054
|
|
|
| |
p4raw-id: //depot/perl@7984
|
|
|
|
|
|
|
| |
- win32.h is included after <sys/socket.h>, so need to
set Win32SCK_IS_STDSCK earlier to avoid re-defined noise in XSUB.h
- GCC (& MSVC?) have execv(...,const char *const *) so need a cast from char **.
p4raw-id: //depot/perlio@7971
|
|\
| |
| | |
p4raw-id: //depot/perlio@7859
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
if SOCKS is selected.
Subject: perl@7847, [ID 20001030.005], close-patch, perlio - The big cleanup
Date: Fri, 24 Nov 2000 18:31:30 +0100
Message-ID: <20001124183130.E28337@Strawberry.COM>
Subject: Re: perl@7847, [ID 20001030.005], close-patch, perlio - Patch the patch ...
From: Jens Hamisch <jens@Strawberry.COM>
Date: Fri, 24 Nov 2000 19:11:51 +0100
Message-ID: <20001124191151.A28753@Strawberry.COM>
p4raw-id: //depot/perl@7855
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
[ 7844]
Win32/perlio Now just fails one io/argv.t test - lack
of default :crlf on standard streams.
[ 7843]
Win32 passes all but t/lib/peek.t with perlio and home-grown crlf.
peek fail is showing a real problem (multiple crlf layers
are getting pushed.)
[ 7842]
Implement PerlIO_binmode()
Fix PerlIOCrlf_unread() (*--ptr rather than *ptr-- ...)
Test on UNIX with PERLIO="perlio crlf" to mimic Win32,
make binmode in t/lib/io_tell.t unconditional so that works.
Checkin just so Win32 machine can see these changes.
[ 7836]
Implement crlf layer - not ready for merge.
p4raw-link: @7844 on //depot/perlio: de6cd452fde5aaf57e339f71b33b6a0852f0f96d
p4raw-link: @7843 on //depot/perlio: 63dbdb066b93ac25a070d3a7942d248c23ec6088
p4raw-link: @7842 on //depot/perlio: 60382766f71ec2a2d8e34a951c5c77b494bd86bb
p4raw-link: @7836 on //depot/perlio: 99efab1281ccea6f7df2a4d0affc5479291e2350
p4raw-id: //depot/perl@7847
|
| | |
| | |
| | | |
p4raw-id: //depot/perl@7840
|
| | |
| | |
| | | |
p4raw-id: //depot/perl@7833
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
crlf layer is now "the" buffer layer and can turn its behaviour on/off.
Lip-service to making stdio layer work on such platforms (untested).
Now fails 3 tests rather than one, checkin to see if I can debug
the issue under linux. (Do not merge.)
p4raw-id: //depot/perlio@7853
|
| |
| |
| |
| |
| | |
of default :crlf on standard streams.
p4raw-id: //depot/perlio@7844
|
| |
| |
| |
| |
| |
| | |
peek fail is showing a real problem (multiple crlf layers
are getting pushed.)
p4raw-id: //depot/perlio@7843
|
|/
|
|
|
|
|
|
| |
Fix PerlIOCrlf_unread() (*--ptr rather than *ptr-- ...)
Test on UNIX with PERLIO="perlio crlf" to mimic Win32,
make binmode in t/lib/io_tell.t unconditional so that works.
Checkin just so Win32 machine can see these changes.
p4raw-id: //depot/perlio@7842
|
|
|
| |
p4raw-id: //depot/perl@7818
|
|
|
| |
p4raw-id: //depot/perl@7816
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
[ 7796]
Win32 builds and runs (mostly) with USE_PERLIO.
PERLIO=perlio passes all tests.
PERLIO=stdio (sadly the default) hangs in t.pragma/warnings.t #319
[ 7790]
If we use (aTHX_ ...) then put Perl_ on the front. (Or drop the aTHX_).
[ 7788]
Make extra buffer layer work (dummy crlf layer)
p4raw-link: @7796 on //depot/perlio: 83b075c35b61a28ca7e2629bb5d6e26f9e0354fe
p4raw-link: @7790 on //depot/perlio: efeab7a8047d7136a0235c1cc7329f57d6a8bfdd
p4raw-link: @7788 on //depot/perlio: 88b61e10dfef3b0642d1458a9fff93e5000f86b0
p4raw-id: //depot/perl@7797
|
| |\
| | |
| | | |
p4raw-id: //depot/perlio@7789
|
| | |
| | |
| | | |
p4raw-id: //depot/perlio@7788
|
| |/
|/|
| | |
p4raw-id: //depot/perl@7791
|
|/
|
| |
p4raw-id: //depot/perl@7774
|
|
|
|
|
|
|
|
|
|
|
|
| |
add ->cop_io to COP structure in cop.h.
Make mg.c and gv.c associate it with ${^OPEN}.
Make lib/open.pm set it.
Have sv.c, perl.c, pp_ctl.c, op.c manipulate it in a manner
manner similar to ->cop_warnings.
Have doio.c's do_open9 and pp_sys.c's pp_backticks use it as default and
call new PerlIO_apply_layers().
Declare latter in perlio.h and define in perlio.c
p4raw-id: //depot/perlio@7740
|
|
|
|
|
| |
part to be isolated.
p4raw-id: //depot/perlio@7736
|
|
|
|
|
|
|
|
| |
consistent way of getting 'rb', 'wb' etc. for binary opens
move *perlio::layers to *open::layers
a #define to show layers available
DOSISH popen/PerlIO had export/import sense inverted.
p4raw-id: //depot/perlio@7711
|
|
|
|
|
|
|
|
| |
undef SETERRNO in case SOCKS has defined it. Based on:
Subject: [ID 20001114.002] Code-Cleanups concerning SOCKS5 and Solaris
Message-Id: <20001114113440.A20005@Strawberry.COM>
p4raw-id: //depot/perl@7683
|