diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-03-12 08:50:11 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-03-12 08:50:11 +0000 |
commit | c0abe5aa023c241a7c62916f78986356631f76c7 (patch) | |
tree | f9ba073cd89b07abbc6eeb57ab365a100b2f3335 /lib/open.t | |
parent | b449fc5bc1becdea88209fddaeded02846c96690 (diff) | |
download | perl-c0abe5aa023c241a7c62916f78986356631f76c7.tar.gz |
An unfortunate side-effect of Encode and Encode::Alias use'ing each
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
Diffstat (limited to 'lib/open.t')
-rw-r--r-- | lib/open.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/open.t b/lib/open.t index 9c36e1a5c8..1c4a99e202 100644 --- a/lib/open.t +++ b/lib/open.t @@ -7,7 +7,7 @@ BEGIN { require Config; import Config; } -use Test::More tests => 22; +use Test::More tests => 23; # open::import expects 'open' as its first argument, but it clashes with open() sub import { @@ -181,6 +181,11 @@ EOE } } +{ + eval q[use Encode::Alias;use open ":std", ":locale"]; + is($@, '', 'can use :std and :locale'); +} + SKIP: { skip("no perlio", 1) unless (find PerlIO::Layer 'perlio'); use open IN => ':non-existent'; |