summaryrefslogtreecommitdiff
path: root/lib/open.t
Commit message (Collapse)AuthorAgeFilesLines
* Move/rewrite test for Recursive call to Perl_load_moduleFather Chrysostomos2011-09-221-8/+1
| | | | | | | | | | This test was relying on a bug in require that causes it to use what- ever I/O layers are active in require‘s *caller* when opening a file [perl #96008]. This rewrites the test using the example in ticket #75722. Since it no longer has anything to do with open.pm, it is now in t/lib/warnings/perlio.
* clear $ENV{PERL_UNICODE} before runperl()ing a test of use open.Tony Cook2011-09-191-15/+19
| | | | | | If PERL_UNICODE was set to a value that modified stream behaviour, the test added in 73f1eaca would fail, because the implied -C option would cause the behaviour the test was checking wouldn't happen.
* [perl #92728] open.pm without :std should leave std aloneFather Chrysostomos2011-09-151-1/+17
| | | | | | | | | ‘use open’ without :std was turning off layers on STDIN and STDOUT (but not STDERR), due to a few missing if() conditions and due to an omission of STDERR (which probably also caused STDERR’s handles to accumulate through multiple calls to ‘use open ':std'...’). This fixes that. (As if you were expecting otherwise.)
* Make open.t use test.plFather Chrysostomos2011-09-151-1/+2
| | | | so future commits can use runperl.
* Guard open.t against Encode not being availableH.Merijn Brand2009-12-291-0/+1
| | | | | | | | Similar changes should/could be made to cpan/CGI/t/utf8.t and ext/XS-APItest/t/utf16_to_utf8.t Reasoning is my smokes being built without Encode, because it takes too long.
* Remove code specific to MacOS Classic from core testsRafael Garcia-Suarez2009-09-081-1/+0
|
* Make lib/open.t under -DuseperlioNicholas Clark2008-06-161-4/+2
| | | p4raw-id: //depot/perl@34060
* An unfortunate side-effect of Encode and Encode::Alias use'ing eachRafael Garcia-Suarez2008-03-121-1/+6
| | | | | | | other, and Encode::Alias exporting functions into Encode for it to use as methods, broke the loading of the find_alias() Encode method in some cases since 5.10. Breaking the recursive inheritance fixes it. p4raw-id: //depot/perl@33486
* Re: Smoke [5.9.4] 28683 FAIL(F) Solaris 2.11 (i386/1 cpu)Andy Dougherty2006-08-101-1/+1
| | | | | Message-ID: <Pine.LNX.4.62.0608101230260.12531@fractal.phys.lafayette.edu> p4raw-id: //depot/perl@28693
* More tests for syswrite with UTF-8 data.Nicholas Clark2006-04-291-42/+64
| | | p4raw-id: //depot/perl@28018
* Remove the last traces of explicitly setting HINT_LOCALIZE_HH fromNicholas Clark2006-04-201-7/+1
| | | | | perl modules. p4raw-id: //depot/perl@27927
* [PATCH] encoding and open pragmasJarkko Hietaniemi2004-09-201-11/+4
| | | | | | | | | | | Date: Mon, 16 Aug 2004 22:27:00 +0300 Message-ID: <41210A84.6060506@iki.fi> Subject: Re: [PATCH] encoding and open pragmas From: Jarkko Hietaniemi <jhi@iki.fi> Date: Tue, 17 Aug 2004 11:22:58 +0300 (EEST) Message-Id: <200408170822.i7H8MwUU016793@vipunen.hut.fi> p4raw-id: //depot/perl@23326
* for Configure -Dnoextensions=EncodeRobin Barker2003-05-231-0/+1
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D90404653D@hotel.npl.co.uk> p4raw-id: //depot/perl@19600
* Fixes for open.pm which attempts to load layers:Nick Ing-Simmons2003-01-221-2/+2
| | | | | | | | | | | | | | 1. C equivalent of local $SIG{__WARN__} = sub {} while loading layers to supress warnings lib/open.t does not want. 2. The loading scheme does not recurse now so look for new symptom of bad layer which is that a good module fails to load (as we cannot open any files). NOTE: In my opinion open.pm should probably die on bad layer spec rather than just (maybe) warning and then allowing opens to fail. p4raw-id: //depot/perlio@18560
* Skip test #17 of lib/open.t when useperlio is not defined.Rafael Garcia-Suarez2002-12-021-1/+2
| | | p4raw-id: //depot/perl@18232
* Re: [perl #18203] Recursive call in PerlIO_find_layerSlaven Rezic2002-11-271-1/+10
| | | | | Message-ID: <877kfvnfcg.fsf@vran.herceg.de> p4raw-id: //depot/perl@18188
* Goes with lib/open.pm diagnostics changesRafael Garcia-Suarez2002-07-011-7/+7
| | | p4raw-id: //depot/perl@17389
* Integrate macperl patch #16868.Jarkko Hietaniemi2002-05-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | p4raw-id: //depot/perl@16882 p4raw-integrated: from //depot/macperl@16881 'copy in' ext/B/B/Concise.pm ext/B/t/deparse.t ext/B/t/terse.t ext/DynaLoader/DynaLoader_pm.PL ext/IO/lib/IO/t/io_dup.t ext/POSIX/t/sigaction.t ext/PerlIO/t/encoding.t ext/Socket/Socket.t lib/AutoSplit.t lib/Net/Ping/t/110_icmp_inst.t lib/Net/hostent.t lib/Pod/t/Usage.t lib/Pod/t/pod2html-lib.pl lib/Test/Harness/t/callback.t lib/blib.pm lib/strict.t lib/subs.t t/lib/filter-util.pl t/lib/warnings/doio t/lib/warnings/mg t/x2p/s2p.t (@16123..) lib/Test/Simple/t/exit.t (@16230..) lib/open.t lib/warnings.t (@16255..) perl.c (@16475..) lib/Unicode/Collate.pm lib/Unicode/UCD.t (@16651..) ext/PerlIO/t/fallback.t lib/Test/Harness/t/strap-analyze.t lib/Test/Harness/t/test-harness.t (@16825..) p4raw-integrated: from //depot/macperl@16868 'copy in' lib/blib.t (@16123..) t/lib/warnings/op (@16230..) ext/Cwd/t/cwd.t ext/Digest/MD5/t/files.t (@16475..) 'merge in' ext/Storable/t/utf8hash.t lib/Test/Harness/Straps.pm (@16730..)
* Use (file PerlIO::Layer 'perlio') rather than $Config{useperlio}Nick Ing-Simmons2002-04-281-6/+6
| | | | | | as gate on layer tests which fail on -Dusesfio (ext/XS/Typemap/Typemap.t still fails on -Dusesfio) p4raw-id: //depot/perlio@16245
* UTF-8 locale: there might already be one UTF-8 discipline.Jarkko Hietaniemi2002-03-271-1/+1
| | | p4raw-id: //depot/perl@15555
* warnings for perlio + othersPaul Marquess2002-03-251-2/+8
| | | | | | From: "Paul Marquess" <paul_marquess@yahoo.co.uk> Message-ID: <AIEAJICLCBDNAAOLLOKLMEKNEAAA.paul_marquess@yahoo.co.uk> p4raw-id: //depot/perl@15485
* The test needs perlio.Jarkko Hietaniemi2002-03-111-5/+8
| | | p4raw-id: //depot/perl@15178
* Clearing locale environment simply doesn't seem toJarkko Hietaniemi2001-12-101-9/+1
| | | | | | | guarantee that (nl_)langinfo(CODESET) would return nil. (I for example get "ISO8859-1", so <guess>maybe there can be per-system default settings at work</guess>.) p4raw-id: //depot/perl@13581
* LC_ALL might trump LANG.Jarkko Hietaniemi2001-12-041-1/+1
| | | p4raw-id: //depot/perl@13460
* Need to hide behind an eval to avoid a warningJarkko Hietaniemi2001-12-011-0/+2
| | | | | about :utf8 on non-perlio configs. p4raw-id: //depot/perl@13405
* Need to skip more tests if not perlio.Jarkko Hietaniemi2001-11-201-81/+81
| | | p4raw-id: //depot/perl@13129
* Move the sysio tests from io/utf8 to lib/open.Jarkko Hietaniemi2001-11-191-7/+96
| | | p4raw-id: //depot/perl@13106
* :utf8 works only with perlio.Jarkko Hietaniemi2001-11-131-7/+15
| | | p4raw-id: //depot/perl@12970
* Bah. %X doesn't mean 0xC1, it means 0XC1. So let's %x.Jarkko Hietaniemi2001-11-101-2/+2
| | | p4raw-id: //depot/perl@12936
* The KOI8-R example wasn't quite right.Jarkko Hietaniemi2001-11-101-2/+3
| | | p4raw-id: //depot/perl@12934
* Enhance the open pragma to support :utf8, :locale,Jarkko Hietaniemi2001-11-101-9/+29
| | | | | | and :encoding directly as special cases, and rename the INOUT to IO. p4raw-id: //depot/perl@12933
* Better Locale Flutzigation (was Re: lib/open.t and locale tests)chromatic2001-10-011-14/+21
| | | | | Message-ID: <20011001162731.40639.qmail@onion.perl.org> p4raw-id: //depot/perl@12296
* Nuke also the LANG because of glibc.Jarkko Hietaniemi2001-10-011-5/+5
| | | p4raw-id: //depot/perl@12294
* Add tests for open.pmchromatic2001-09-281-0/+68
Message-ID: <20010928234521.14178.qmail@onion.perl.org> p4raw-id: //depot/perl@12263