r69860 - in /trunk/libmime-charset-perl: Changes Charset.pm Charset/JA_JP.pod Charset/_Compat.pm META.yml Makefile.PL debian/changelog debian/control debian/copyright debian/source/ debian/source/format t/01encode.t t/01ooencode.t
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Sun Feb 27 14:26:12 UTC 2011
Author: jawnsy-guest
Date: Sun Feb 27 14:25:58 2011
New Revision: 69860
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=69860
Log:
* New upstream release
* Standards-Version 3.9.1 (no changes)
* Bump to debhelper 8
* Refresh copyright information
* Use new 3.0 (quilt) source format
Added:
trunk/libmime-charset-perl/debian/source/
trunk/libmime-charset-perl/debian/source/format
Modified:
trunk/libmime-charset-perl/Changes
trunk/libmime-charset-perl/Charset.pm
trunk/libmime-charset-perl/Charset/JA_JP.pod
trunk/libmime-charset-perl/Charset/_Compat.pm
trunk/libmime-charset-perl/META.yml
trunk/libmime-charset-perl/Makefile.PL
trunk/libmime-charset-perl/debian/changelog
trunk/libmime-charset-perl/debian/control
trunk/libmime-charset-perl/debian/copyright
trunk/libmime-charset-perl/t/01encode.t
trunk/libmime-charset-perl/t/01ooencode.t
Modified: trunk/libmime-charset-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/Changes?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/Changes (original)
+++ trunk/libmime-charset-perl/Changes Sun Feb 27 14:25:58 2011
@@ -1,3 +1,13 @@
+2011-02-19 Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>
+
+ * Release 1.008.1.
+ * Chg: Workaround for CPAN RT #65796: Deep recursion error finding
+ invalid charset. Limit length of charset name upto 75.
+ * Imp: Supports Unicode/multibyte on Perl 5.7.3 (experimental).
+ * Perl 5.7.3 & 5.8.3:
+ avoid ``Useless use of a constant in void context'' warnings.
+ * Doc: small fixes.
+
2009-10-19 Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>
* Release 1.008.
Modified: trunk/libmime-charset-perl/Charset.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/Charset.pm?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/Charset.pm (original)
+++ trunk/libmime-charset-perl/Charset.pm Sun Feb 27 14:25:58 2011
@@ -109,12 +109,21 @@
);
use Carp qw(croak);
-use constant USE_ENCODE => ($] >= 5.008)? 'Encode': '';
+use constant USE_ENCODE => ($] >= 5.007003)? 'Encode': '';
my @ENCODE_SUBS = qw(FB_CROAK FB_PERLQQ FB_HTMLCREF FB_XMLCREF
is_utf8 resolve_alias);
if (USE_ENCODE) {
eval "use ".USE_ENCODE." \@ENCODE_SUBS;";
+ if ($@) { # Perl 5.7.3 + Encode 0.40
+ eval "use ".USE_ENCODE." qw(is_utf8);";
+ require MIME::Charset::_Compat;
+ for my $sub (@ENCODE_SUBS) {
+ no strict "refs";
+ *{$sub} = \&{"MIME::Charset::_Compat::$sub"}
+ unless $sub eq 'is_utf8';
+ }
+ }
} else {
require MIME::Charset::_Compat;
for my $sub (@ENCODE_SUBS) {
@@ -123,7 +132,7 @@
}
}
-$VERSION = '1.008';
+$VERSION = '1.008.1';
######## Private Attributes ########
@@ -344,6 +353,7 @@
my $class = shift;
my $charset = shift;
return bless {}, $class unless $charset;
+ return bless {}, $class if 75 < length $charset; # w/a for CPAN RT #65796.
my %params = @_;
my $mapping = uc($params{'Mapping'} || $Config->{Mapping});
@@ -645,7 +655,7 @@
=cut
sub detect_7bit_charset($) {
- return $DEFAULT_CHARSET unless USE_ENCODE;
+ return $DEFAULT_CHARSET unless &USE_ENCODE;
my $s = shift;
return $DEFAULT_CHARSET unless $s;
@@ -1096,7 +1106,7 @@
Unicode/multibyte support flag.
Non-empty string will be set when Unicode and multibyte support is enabled.
-Currently, this flag will be non-empty on Perl 5.8.0 or later and
+Currently, this flag will be non-empty on Perl 5.7.3 or later and
empty string on earlier versions of Perl.
=back
@@ -1166,7 +1176,7 @@
=over 4
-=item o
+=item *
new() method returns an object when CHARSET argument is not specified.
@@ -1176,7 +1186,7 @@
=over 4
-=item o
+=item *
Restrict characters in encoded-word according to RFC 2047 section 5 (3).
This also affects return value of encoded_header_len() method.
@@ -1187,11 +1197,11 @@
=over 4
-=item o
+=item *
body_encoding() method may also returns C<"S">.
-=item o
+=item *
Return value of body_encode() method for UTF-8 may include
C<"QUOTED-PRINTABLE"> encoding item that in earlier versions was fixed to
Modified: trunk/libmime-charset-perl/Charset/JA_JP.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/Charset/JA_JP.pod?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/Charset/JA_JP.pod (original)
+++ trunk/libmime-charset-perl/Charset/JA_JP.pod Sun Feb 27 14:25:58 2011
@@ -435,7 +435,7 @@
Unicode/ãã«ããã¤ã対å¿ãã©ã°ã
Unicode ã¨ãã«ããã¤ãã¸ã®å¯¾å¿ãæå¹ã«ãªã£ã¦ããã¨ãã¯ã空ã§ãªãæååãè¨å®ããã¦ããã
-ç¾å¨ããã®ãã©ã°ã¯ Perl 5.8.0 以éã§ç©ºã§ãªãããããã以åã® Perl ã§ã¯ç©ºã®æååã
+ç¾å¨ããã®ãã©ã°ã¯ Perl 5.7.3 以éã§ç©ºã§ãªãããããã以åã® Perl ã§ã¯ç©ºã®æååã
=back
@@ -506,7 +506,7 @@
=over 4
-=item o
+=item *
new() ã¡ã½ãã㯠CHARSET 弿°ãæå®ããªãã¦ããªãã¸ã§ã¯ããè¿ãããã«ãªã£ãã
@@ -516,7 +516,7 @@
=over 4
-=item o
+=item *
encoded-word ã«å«ã¾ããæå種ã RFC 2047 ã® 5 (3) ç¯ã®ã¨ããã«ããã
encoded_header_len() ã¡ã½ããã®è¿å¤ãå¤ããã
@@ -527,11 +527,11 @@
=over 4
-=item o
+=item *
body_encoding() ã¡ã½ããã C<"S"> ãè¿ããããã«ãªã£ãã
-=item o
+=item *
body_encode() ã¡ã½ããã® UTF-8 ã«å¯¾ããè¿å¤ã®ã¨ã³ã³ã¼ãã£ã³ã°è¦ç´ ã¯ã
ããã¾ã§ã®ãªãªã¼ã¹ã§ã¯ C<"BASE64"> ã«åºå®ã ã£ãããC<"QUOTED-PRINTABLE"> ã«ãªããã¨ãããã
Modified: trunk/libmime-charset-perl/Charset/_Compat.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/Charset/_Compat.pm?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/Charset/_Compat.pm (original)
+++ trunk/libmime-charset-perl/Charset/_Compat.pm Sun Feb 27 14:25:58 2011
@@ -7,7 +7,7 @@
use vars qw($VERSION);
-$VERSION = "1.003";
+$VERSION = "1.003.1";
sub FB_CROAK { 0x1; }
sub FB_PERLQQ { 0x100; }
@@ -27,6 +27,8 @@
my $cset = lc(shift);
if ($cset eq "8bit" or $cset !~ /\S/) {
return undef;
+ } elsif ($cset eq '_unicode_') {
+ return $cset;
} else {
# Taken from Encode-2.24.
my %Winlatin2cp = (
Modified: trunk/libmime-charset-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/META.yml?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/META.yml (original)
+++ trunk/libmime-charset-perl/META.yml Sun Feb 27 14:25:58 2011
@@ -1,7 +1,7 @@
--- #YAML:1.0
name: MIME-Charset
abstract: Charset Informations for MIME
-version: 1.008
+version: 1.008.1
author:
- Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>
license: perl
@@ -27,7 +27,7 @@
provides:
MIME::Charset:
file: Charset.pm
- version: 1.008
+ version: 1.008.1
resources:
repository: http://hatuka.nezumi.nu/repos/MIME-Charset/
meta-spec:
Modified: trunk/libmime-charset-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/Makefile.PL?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/Makefile.PL (original)
+++ trunk/libmime-charset-perl/Makefile.PL Sun Feb 27 14:25:58 2011
@@ -9,7 +9,7 @@
# Specific dependencies
test_requires 'Test::More' => '0';
-if ( $] >= 5.008 ) {
+if ( $] >= 5.007003 ) {
requires 'Encode' => '1.98';
include 'Module::AutoInstall';
feature 'Extended mappings by Japanese codepages',
Modified: trunk/libmime-charset-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/debian/changelog?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/debian/changelog (original)
+++ trunk/libmime-charset-perl/debian/changelog Sun Feb 27 14:25:58 2011
@@ -1,3 +1,13 @@
+libmime-charset-perl (1.008.1-1) UNRELEASED; urgency=low
+
+ * New upstream release
+ * Standards-Version 3.9.1 (no changes)
+ * Bump to debhelper 8
+ * Refresh copyright information
+ * Use new 3.0 (quilt) source format
+
+ -- Jonathan Yu <jawnsy at cpan.org> Sun, 27 Feb 2011 09:48:59 -0500
+
libmime-charset-perl (1.008-1) unstable; urgency=low
[ Jonathan Yu ]
Modified: trunk/libmime-charset-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/debian/control?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/debian/control (original)
+++ trunk/libmime-charset-perl/debian/control Sun Feb 27 14:25:58 2011
@@ -1,21 +1,24 @@
Source: libmime-charset-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: perl, libtest-pod-perl
+Build-Depends: debhelper (>= 8)
+Build-Depends-Indep: perl,
+ libtest-pod-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Standards-Version: 3.8.3
+Uploaders: Micah Anderson <micah at debian.org>,
+ Jonathan Yu <jawnsy at cpan.org>,
+ Rene Mayorga <rmayorga at debian.org>,
+ gregor herrmann <gregoa at debian.org>,
+ Ryan Niebur <ryan at debian.org>
+Standards-Version: 3.9.1
Homepage: http://search.cpan.org/dist/MIME-Charset/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libmime-charset-perl/
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libmime-charset-perl/
-Uploaders: Micah Anderson <micah at debian.org>, Jonathan Yu <jawnsy at cpan.org>,
- Rene Mayorga <rmayorga at debian.org>, gregor herrmann <gregoa at debian.org>,
- Ryan Niebur <ryan at debian.org>
Package: libmime-charset-perl
Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}
-Description: Perl module for MIME character set information
+Depends: ${misc:Depends}, ${perl:Depends}
+Description: module for MIME character set information
MIME::Charset provides information about character sets specified in the MIME
(Multipurpose Internet Mail Extensions) format. It is often used to describe
character set and encoding information for messages on the Internet.
Modified: trunk/libmime-charset-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/debian/copyright?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/debian/copyright (original)
+++ trunk/libmime-charset-perl/debian/copyright Sun Feb 27 14:25:58 2011
@@ -1,39 +1,39 @@
-Format-Specification:
- http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
-Upstream-Maintainer: IKEDA Soji <hatuka(at)nezumi.nu>
-Upstream-Source: http://search.cpan.org/dist/MIME-Charset/
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Maintainer: IKEDA Soji <hatuka at nezumi.nu>
+Source: http://search.cpan.org/dist/MIME-Charset/
+Name: MIME-Charset
Files: *
Copyright: 2006-2009, IKEDA Soji <hatuka at nezumi.nu>
-License-Alias: Perl
-License: Artistic | GPL-1+
+License: Artistic or GPL-1+
+
+Files: inc/Module/*
+Copyright: 2002-2010, Adam Kennedy <adamk at cpan.org>
+ 2002-2010, Audrey Tang <autrijus at autrijus.org>
+ 2002-2010, Brian Ingerson <ingy at cpan.org>
+License: Artistic or GPL-1+
Files: debian/*
-Copyright: 2009, Jonathan Yu <jawnsy at cpan.org>
+Copyright: 2009-2011, Jonathan Yu <jawnsy at cpan.org>
2009, Ryan Niebur <ryan at debian.org>
2008, gregor herrmann <gregoa at debian.org>
2008, Roberto C. Sanchez <roberto at connexer.com>
2008, Rene Mayorga <rmayorga at debian.org.sv>
2007, Micah Anderson <micah at debian.org>
-License: Artistic | GPL-1+
-
-Files: inc/Module/*
-Copyright: 2002-2009, Adam Kennedy <adamk at cpan.org>
- 2002-2009, Audrey Tang <autrijus at autrijus.org>
- 2002-2009, Brian Ingerson <ingy at cpan.org>
-License-Alias: Perl
-License: Artistic | GPL-1+
+License: Artistic or GPL-1+
License: Artistic
- This program is free software; you can redistribute it and/or modify
- it under the terms of the Artistic License, which comes with Perl.
- On Debian GNU/Linux systems, the complete text of the Artistic License
- can be found in `/usr/share/common-licenses/Artistic'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'.
License: GPL-1+
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 1, or (at your option)
- any later version.
- On Debian GNU/Linux systems, the complete text of the GNU General
- Public License can be found in `/usr/share/common-licenses/GPL'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.
Added: trunk/libmime-charset-perl/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/debian/source/format?rev=69860&op=file
==============================================================================
--- trunk/libmime-charset-perl/debian/source/format (added)
+++ trunk/libmime-charset-perl/debian/source/format Sun Feb 27 14:25:58 2011
@@ -1,0 +1,1 @@
+3.0 (quilt)
Modified: trunk/libmime-charset-perl/t/01encode.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/t/01encode.t?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/t/01encode.t (original)
+++ trunk/libmime-charset-perl/t/01encode.t Sun Feb 27 14:25:58 2011
@@ -4,6 +4,10 @@
BEGIN { plan tests => 18 }
use MIME::Charset qw(:trans);
+if (&MIME::Charset::USE_ENCODE && $] < 5.008) {
+ require Encode::JP;
+ require Encode::CN;
+}
my ($converted, $charset, $encoding);
my $dst = "Perl:\033\$BIBE*\@^CoE*GQJ*=PNO4o\033(B";
Modified: trunk/libmime-charset-perl/t/01ooencode.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmime-charset-perl/t/01ooencode.t?rev=69860&op=diff
==============================================================================
--- trunk/libmime-charset-perl/t/01ooencode.t (original)
+++ trunk/libmime-charset-perl/t/01ooencode.t Sun Feb 27 14:25:58 2011
@@ -4,6 +4,10 @@
BEGIN { plan tests => 18 }
use MIME::Charset qw(:trans);
+if (&MIME::Charset::USE_ENCODE && $] < 5.008) {
+ require Encode::JP;
+ require Encode::CN;
+}
my ($converted, $charset, $encoding);
my $dst = "Perl:\033\$BIBE*\@^CoE*GQJ*=PNO4o\033(B";
More information about the Pkg-perl-cvs-commits
mailing list