Chris Nandor <pudge@pobox.com>
Craig A. Berry <craigberry@mac.com>
Dan Kogai <dankogai@dan.co.jp>
+Dave Evans <dave@rudolf.org.uk>
Elizabeth Mattijsen <liz@dijkmat.nl>
Gerrit P. Haase <gp@familiehaase.de>
Graham Barr <gbarr@pobox.com>
# Revision history for Perl extension Encode.
#
-# $Id: Changes,v 1.97 2003/07/08 21:52:14 dankogai Exp $
+# $Id: Changes,v 1.98 2003/08/20 11:15:31 dankogai Exp dankogai $
#
-$Revision: 1.97 $ $Date: 2003/07/08 21:52:14 $
+$Revision: 1.98 $ $Date: 2003/08/20 11:15:31 $
+! lib/Encode/MIME/Header.pm AUTHORS t/mime-header.t
+ Dave Evans has found and corrected a bug in Encode::MIME::Header.
+ Test suite added by Dan Kogai.
+ Message-Id: <3F43440B.7060606@rudolf.org.uk>
+! encoding.pm
+ Typo fixes rolled back in from bleedperl
+! t/at-cn.t t/at-tw.t
+ v-strings, now depreciated in perl 5.8.1, is replaced by sadahiro
+ Message-Id: <20030805002313.9880.BQW10602@nifty.com>
+! bin/enc2xs
+ argv case nit for VMS by Craig
+ Message-ID: <3F2B02DE.10207@mac.com>
! t/enc_eucjp.t t/enc_utf8.t AUTHORS
Encode test fixes for VMS by Peter Prymmer
Message-ID: <OFBD4A7559.D7CF9517-ON85256D6B.00534853-85256D6B.00538131@factset.com>
#
-# $Id: Encode.pm,v 1.97 2003/07/08 21:52:14 dankogai Exp $
+# $Id: Encode.pm,v 1.98 2003/08/20 11:16:34 dankogai Exp dankogai $
#
package Encode;
use strict;
-our $VERSION = do { my @r = (q$Revision: 1.97 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 1.98 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
sub DEBUG () { 0 }
use XSLoader ();
XSLoader::load(__PACKAGE__, $VERSION);
+# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Encode
-version: 1.97
+version: 1.98
version_from: Encode.pm
installdirs: perl
requires:
distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.12
+generated_by: ExtUtils::MakeMaker version 6.16
use warnings;
use Getopt::Std;
my @orig_ARGV = @ARGV;
-our $VERSION = do { my @r = (q$Revision: 1.31 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 1.32 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
# These may get re-ordered.
# RAW is a do_now as inserted by &enter
-# $Id: encoding.pm,v 1.46 2003/07/08 21:52:14 dankogai Exp $
+# $Id: encoding.pm,v 1.47 2003/08/20 11:15:31 dankogai Exp dankogai $
package encoding;
-our $VERSION = do { my @r = (q$Revision: 1.46 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 1.47 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
use Encode;
use strict;
use strict;
no warnings 'redefine';
use Encode;
-our $VERSION = do { my @r = (q$Revision: 1.37 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 1.38 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
sub DEBUG () { 0 }
use base qw(Exporter);
package Encode::MIME::Header;
use strict;
# use warnings;
-our $VERSION = do { my @r = (q$Revision: 1.8 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 1.9 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
use Encode qw(find_encoding encode_utf8 decode_utf8);
use MIME::Base64;
use Carp;
$llen *= $enc eq 'B' ? 3.0/4.0 : 1.0/3.0;
my @result = ();
my $chunk = '';
- while(my $chr = substr($str, 0, 1, '')){
+ while(length(my $chr = substr($str, 0, 1, ''))){
use bytes ();
if (bytes::length($chunk) + bytes::length($chr) > $llen){
push @result, SINGLE->{$enc}($chunk);
-# $Id: enc_eucjp.t,v 1.4 2003/04/24 17:43:16 dankogai Exp $
+# $Id: enc_eucjp.t,v 1.5 2003/08/20 11:15:31 dankogai Exp dankogai $
# This is the twin of enc_utf8.t .
BEGIN {
-# $Id: enc_utf8.t,v 1.3 2003/02/20 14:42:34 dankogai Exp $
+# $Id: enc_utf8.t,v 1.4 2003/08/20 11:15:31 dankogai Exp dankogai $
# This is the twin of enc_eucjp.t .
BEGIN {
#
-# $Id: mime-header.t,v 1.7 2003/05/10 18:13:59 dankogai Exp $
+# $Id: mime-header.t,v 1.8 2003/08/20 11:15:31 dankogai Exp dankogai $
# This script is written in utf8
#
BEGIN {
use strict;
#use Test::More qw(no_plan);
-use Test::More tests => 9;
+use Test::More tests => 10;
use_ok("Encode::MIME::Header");
my $eheader =<<'EOS';
$qheader = "What is =?UTF-8?Q?=3D=3FUTF=2D8=3FB=3Fw4RwZmVs=3F=3D?= ?";
is(Encode::encode('MIME-B', $dheader), $bheader, "Double decode B");
is(Encode::encode('MIME-Q', $dheader), $qheader, "Double decode Q");
+{
+ # From: Dave Evans <dave@rudolf.org.uk>
+ # Subject: Bug in Encode::MIME::Header
+ # Message-Id: <3F43440B.7060606@rudolf.org.uk>
+ use charnames ":full";
+ my $pound_1024 = "\N{POUND SIGN}1024";
+ is(Encode::encode('MIME-Q' => $pound_1024), '=?UTF-8?Q?=C2=A31024?=',
+ 'pound 1024');
+}
__END__;
#
-# $Id: macArabic.ucm,v 1.20 2002/04/04 19:50:54 dankogai Exp $
+# $Id: macArabic.ucm,v 1.21 2003/08/20 11:15:31 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/ARABIC.TXT
#
-# $Id: macFarsi.ucm,v 1.20 2002/04/04 19:50:54 dankogai Exp $
+# $Id: macFarsi.ucm,v 1.21 2003/08/20 11:15:31 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/FARSI.TXT
#
-# $Id: macHebrew.ucm,v 1.20 2002/04/04 19:50:54 dankogai Exp $
+# $Id: macHebrew.ucm,v 1.21 2003/08/20 11:15:31 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/HEBREW.TXT