'Encode' => {
'MAINTAINER' => 'dankogai',
- 'DISTRIBUTION' => 'DANKOGAI/Encode-2.54.tar.gz',
+ 'DISTRIBUTION' => 'DANKOGAI/Encode-2.55.tar.gz',
'FILES' => q[cpan/Encode],
'UPSTREAM' => 'cpan',
},
# Revision history for Perl extension Encode.
#
-# $Id: Changes,v 2.54 2013/08/29 16:47:39 dankogai Exp dankogai $
+# $Id: Changes,v 2.55 2013/09/14 07:51:59 dankogai Exp dankogai $
#
-$Revision: 2.54 $ $Date: 2013/08/29 16:47:39 $
+$Revision: 2.55 $ $Date: 2013/09/14 07:51:59 $
+! Encode.pm
+ Makefile.PL
+ Unicode/Unicode.pm
+ lib/Encode/Alias.pm
+ lib/Encode/CN/HZ.pm
+ lib/Encode/Encoder.pm
+ lib/Encode/Encoding.pm
+ lib/Encode/GSM0338.pm
+ lib/Encode/Guess.pm
+ lib/Encode/JP/JIS7.pm
+ lib/Encode/KR/2022_KR.pm
+ lib/Encode/MIME/Header.pm
+ lib/Encode/MIME/Header/ISO_2022_JP.pm
+ lib/Encode/Unicode/UTF7.pm
+ t/Encoder.t
+ replaced 'use base' with 'use parent'
+ base.pm is an heavy module for what it is used for.
+ Fortunately it has a tiny replacement, parent.pm
+ that is on CPAN but also in perl core since 5.10.1.
+ https://github.com/dankogai/p5-encode/pull/15
+
+2.54 2013/08/29 16:47:39
! Encode.xs
+ t/cow.t
Addressed: COW breakage with _utf8_on()
#
-# $Id: Encode.pm,v 2.54 2013/08/29 16:47:39 dankogai Exp dankogai $
+# $Id: Encode.pm,v 2.55 2013/09/14 07:51:59 dankogai Exp dankogai $
#
package Encode;
use strict;
use warnings;
-our $VERSION = sprintf "%d.%02d", q$Revision: 2.54 $ =~ /(\d+)/g;
+our $VERSION = sprintf "%d.%02d", q$Revision: 2.55 $ =~ /(\d+)/g;
use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};
use XSLoader ();
XSLoader::load( __PACKAGE__, $VERSION );
-require Exporter;
-use base qw/Exporter/;
+use Exporter 5.57 'import';
# Public, encouraged API is exported by default
/*
- $Id: Encode.xs,v 2.24 2013/08/29 16:47:39 dankogai Exp dankogai $
+ $Id: Encode.xs,v 2.24 2013/08/29 16:47:39 dankogai Exp $
*/
#define PERL_NO_GET_CONTEXT
}
},
"runtime" : {
- "requires" : {}
+ "requires" : {
+ "Exporter" : "5.57",
+ "parent" : "0.221"
+ }
}
},
"release_status" : "stable",
"url" : "https://github.com/dankogai/p5-encode"
}
},
- "version" : "2.54"
+ "version" : "2.55"
}
directory:
- t
- inc
-requires: {}
+requires:
+ Exporter: 5.57
+ parent: 0.221
resources:
repository: https://github.com/dankogai/p5-encode
-version: 2.54
+version: 2.55
#
-# $Id: Makefile.PL,v 2.11 2013/08/29 15:20:31 dankogai Exp $
+# $Id: Makefile.PL,v 2.12 2013/09/14 07:51:59 dankogai Exp dankogai $
#
use 5.007003;
use strict;
},
INC => '-I' . File::Spec->catfile( '.', 'Encode' ),
LICENSE => 'perl',
+ PREREQ_PM => {
+ Exporter => '5.57', # use Exporter 'import';
+ parent => '0.221', # version bundled with 5.10.1
+ },
PMLIBDIRS => \@pmlibdirs,
INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),
META_MERGE => {
use warnings;
no warnings 'redefine';
-our $VERSION = do { my @r = ( q$Revision: 2.8 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.9 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use XSLoader;
XSLoader::load( __PACKAGE__, $VERSION );
} => __PACKAGE__;
}
-use base qw(Encode::Encoding);
+use parent qw(Encode::Encoding);
sub renew {
my $self = shift;
use strict;
use warnings;
no warnings 'redefine';
-our $VERSION = do { my @r = ( q$Revision: 2.17 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.18 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};
-use base qw(Exporter);
+use Exporter 'import';
# Public, encouraged API is exported by default
use utf8 ();
use vars qw($VERSION);
-$VERSION = do { my @r = ( q$Revision: 2.6 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+$VERSION = do { my @r = ( q$Revision: 2.7 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use Encode qw(:fallbacks);
-use base qw(Encode::Encoding);
+use parent qw(Encode::Encoding);
__PACKAGE__->Define('hz');
# HZ is a combination of ASCII and escaped GB, so we implement it
#
-# $Id: Encoder.pm,v 2.2 2011/08/09 07:49:44 dankogai Exp $
+# $Id: Encoder.pm,v 2.3 2013/09/14 07:51:59 dankogai Exp dankogai $
#
package Encode::Encoder;
use strict;
use warnings;
-our $VERSION = do { my @r = ( q$Revision: 2.2 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.3 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
require Exporter;
our @ISA = qw(Exporter);
write a module like this:
package Encode::Base64;
- use base 'Encode::Encoding';
+ use parent 'Encode::Encoding';
__PACKAGE__->Define('base64');
use MIME::Base64;
sub encode{
# Base class for classes which implement encodings
use strict;
use warnings;
-our $VERSION = do { my @r = ( q$Revision: 2.6 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.7 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
require Encode;
=head1 SYNOPSIS
package Encode::MyEncoding;
- use base qw(Encode::Encoding);
+ use parent qw(Encode::Encoding);
__PACKAGE__->Define(qw(myCanonical myAlias));
package Encode::ROT13;
use strict;
- use base qw(Encode::Encoding);
+ use parent qw(Encode::Encoding);
__PACKAGE__->Define('rot13');
additional behaviour for all encoding objects.
package Encode::MyEncoding;
- use base qw(Encode::Encoding);
+ use parent qw(Encode::Encoding);
__PACKAGE__->Define(qw(myCanonical myAlias));
#
-# $Id: GSM0338.pm,v 2.4 2013/08/14 02:29:54 dankogai Exp $
+# $Id: GSM0338.pm,v 2.5 2013/09/14 07:51:59 dankogai Exp dankogai $
#
package Encode::GSM0338;
use Carp;
use vars qw($VERSION);
-$VERSION = do { my @r = ( q$Revision: 2.4 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+$VERSION = do { my @r = ( q$Revision: 2.5 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use Encode qw(:fallbacks);
-use base qw(Encode::Encoding);
+use parent qw(Encode::Encoding);
__PACKAGE__->Define('gsm0338');
sub needs_lines { 1 }
use strict;
use warnings;
use Encode qw(:fallbacks find_encoding);
-our $VERSION = do { my @r = ( q$Revision: 2.5 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.6 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
my $Canon = 'Guess';
use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};
Suspects => {%DEF_SUSPECTS},
} => __PACKAGE__;
-use base qw(Encode::Encoding);
+use parent qw(Encode::Encoding);
sub needs_lines { 1 }
sub perlio_ok { 0 }
package Encode::JP::JIS7;
use strict;
use warnings;
-our $VERSION = do { my @r = ( q$Revision: 2.4 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.5 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use Encode qw(:fallbacks);
} => __PACKAGE__;
}
-use base qw(Encode::Encoding);
+use parent qw(Encode::Encoding);
# we override this to 1 so PerlIO works
sub needs_lines { 1 }
package Encode::KR::2022_KR;
use strict;
use warnings;
-our $VERSION = do { my @r = ( q$Revision: 2.2 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.3 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use Encode qw(:fallbacks);
-use base qw(Encode::Encoding);
+use parent qw(Encode::Encoding);
__PACKAGE__->Define('iso-2022-kr');
sub needs_lines { 1 }
use warnings;
no warnings 'redefine';
-our $VERSION = do { my @r = ( q$Revision: 2.14 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.15 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use Encode qw(find_encoding encode_utf8 decode_utf8);
use MIME::Base64;
use Carp;
Name => 'MIME-Q',
} => __PACKAGE__;
-use base qw(Encode::Encoding);
+use parent qw(Encode::Encoding);
sub needs_lines { 1 }
sub perlio_ok { 0 }
use strict;
use warnings;
-use base qw(Encode::MIME::Header);
+use parent qw(Encode::MIME::Header);
$Encode::Encoding{'MIME-Header-ISO_2022_JP'} =
bless { encode => 'B', bpl => 76, Name => 'MIME-Header-ISO_2022_JP' } =>
use Encode::CJKConstants qw(%RE);
-our $VERSION = do { my @r = ( q$Revision: 1.3 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 1.4 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
# I owe the below codes totally to
# Jcode by Dan Kogai & http://www.din.or.jp/~ohzaki/perl.htm#JP_Base64
#
-# $Id: UTF7.pm,v 2.7 2013/04/26 18:30:46 dankogai Exp $
+# $Id: UTF7.pm,v 2.8 2013/09/14 07:51:59 dankogai Exp dankogai $
#
package Encode::Unicode::UTF7;
use strict;
use warnings;
no warnings 'redefine';
-use base qw(Encode::Encoding);
+use parent qw(Encode::Encoding);
__PACKAGE__->Define('UTF-7');
-our $VERSION = do { my @r = ( q$Revision: 2.7 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.8 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use MIME::Base64;
use Encode;
#
-# $Id: Encoder.t,v 2.0 2004/05/16 20:55:17 dankogai Exp $
+# $Id: Encoder.t,v 2.1 2013/09/14 07:51:59 dankogai Exp dankogai $
#
BEGIN {
use Encode::Encoder qw(encoder);
use MIME::Base64;
package Encode::Base64;
-use base 'Encode::Encoding';
+use parent 'Encode::Encoding';
__PACKAGE__->Define('base64');
use MIME::Base64;
sub encode{
#
-# $Id: cow.t,v 1.1 2013/08/29 16:47:39 dankogai Exp dankogai $
+# $Id: cow.t,v 1.1 2013/08/29 16:47:39 dankogai Exp $
#
use strict;
use Encode ();
#
-# $Id: decode.t,v 1.1 2013/08/29 16:47:39 dankogai Exp dankogai $
+# $Id: decode.t,v 1.1 2013/08/29 16:47:39 dankogai Exp $
#
use strict;
use Encode qw(decode_utf8 FB_CROAK);
=item *
-L<Encode> has been upgraded from version 2.52 to 2.54.
+L<Encode> has been upgraded from version 2.52 to 2.55.
An erroneous early return in C<decode_utf8> has been removed, and a bug in
-C<_utf8_on> under COW has been fixed.
+C<_utf8_on> under COW has been fixed. Encode also now uses L<parent> rather
+than L<base> throughout.
=item *