develooper Front page | perl.perl5.porters | Postings from March 2015

[Encode] 2.72 released!

Thread Previous | Thread Next
From:
Dan Kogai
Date:
March 14, 2015 02:58
Subject:
[Encode] 2.72 released!
Message ID:
7DD3BE43-8658-49A2-9290-94AF052113E1@dan.co.jp
Porters,

Just $Encode::VERSION++’ed.

> On Mar 12, 2015, at 17:49, Steve Hay <steve.m.hay@googlemail.com> wrote:
> 
> Just the $VERSION bump in encoding.pm is required for all tests to
> pass in bleadperl, but as I noted here:
> 
> http://www.nntp.perl.org/group/perl.perl5.porters/2015/03/msg226576.html
> 
> it would also be nice to reinstate the accidentally deleted new tests
> if the deletion was indeed accidental. It might just be worth chasing
> up khw/bingos to check that if they don't reply on-list.
> 
> On 12 March 2015 at 01:37, Dan Kogai <dankogai@dan.co.jp> wrote:
>> Okay, I will. But is $VERSION++ enough or do I need to pull anything else?

What I did is copy encoding.pm of bleadperl instead of just bumping the version.  Though functionally identical it is slightly different from 2.13 which comes with Encode 2.71:

--- a/encoding.pm
+++ b/encoding.pm
@@ -1,6 +1,6 @@
-# $Id: encoding.pm,v 2.13 2015/03/12 00:03:52 dankogai Exp $
+# $Id: encoding.pm,v 2.14 2015/03/14 02:44:39 dankogai Exp dankogai $
 package encoding;
-our $VERSION = sprintf "%d.%02d", q$Revision: 2.13 $ =~ /(\d+)/g;
+our $VERSION = sprintf "%d.%02d", q$Revision: 2.14 $ =~ /(\d+)/g;

 use Encode;
 use strict;
@@ -8,6 +8,13 @@ use warnings;

 use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};

+BEGIN {
+    if ( ord("A") == 193 ) {
+        require Carp;
+        Carp::croak("encoding: pragma does not support EBCDIC platforms");
+    }
+}
+
 our $HAS_PERLIO = 0;
 eval { require PerlIO::encoding };
 unless ($@) {
@@ -95,11 +102,6 @@ sub _get_locale_encoding {
 }

 sub import {
-    if ( ord("A") == 193 ) {
-        require Carp;
-        Carp::croak("encoding: pragma does not support EBCDIC platforms");
-    }
-
     if ($] >= 5.017) {
        warnings::warnif("deprecated",
                         "Use of the encoding pragma is deprecated")

=head1 Availability

git clone git://github.com/dankogai/p5-encode.git
http://www.dan.co.jp/~dankogai/cpan/Encode-2.72.tar.gz
and CPAN near you.

Travis is all green:
https://travis-ci.org/dankogai/p5-encode

=head1 CPAN index

 User: DANKOGAI ()
 Distribution file: Encode-2.72.tar.gz
 Number of files: 210
 *.pm files: 26
 README: Encode-2.72/README
 META-File: Encode-2.72/META.json
 META-Parser: Parse::CPAN::Meta 1.4404
 META-driven index: no
 Timestamp of file: Sat Mar 14 02:51:25 2015 UTC
 Time of this run: Sat Mar 14 02:53:11 2015 UTC

=head1 Changes

! encoding.pm
  Copied from bleadperl to be in sync with it again.
  http://www.nntp.perl.org/group/perl.perl5.porters/2015/03/msg226576.html

=head1 AUTHOR

Dan the Encode Maintainer





Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About