# Revision history for Perl extension Encode.
#
-# $Id: Changes,v 2.24 2008/03/12 09:51:11 dankogai Exp $
+# $Id: Changes,v 2.25 2008/05/07 20:56:05 dankogai Exp dankogai $
#
-$Revision: 2.24 $ $Date: 2008/03/12 09:51:11 $
+$Revision: 2.25 $ $Date: 2008/05/07 20:56:05 $
+! Encode.pm
+ added ':default' to Exporter option.
+! lib/Encode/GSM0338.pm
+ GSM0338 now handles coderef in CHECK
+ http://rt.cpan.org/Ticket/Display.html?id=31335
+! Makefile.PL
+ Perl 5.10/Encode 2.24: Tiny typo in Encode's Makefile.PL arg processing
+ Message-Id: <961C2A4F-92B3-416D-A9F9-E7B0ADA9F134@fsck.com>
+! lib/Encode/Alias.pm
+ "This fix for Encode::Alias should make Solaris happy:"
+ Message-ID: <47D886D9.6060001@iki.fi>
+
+$Revision: 2.25 $ $Date: 2008/05/07 20:56:05 $
! lib/Encode/Config.pm
adds and fixes also adds cp858 support.
! Encode.pm encoding.pm lib/Encode/Alias.pm ucm/cp858.ucm
#
-# $Id: Encode.pm,v 2.24 2008/03/12 09:58:12 dankogai Exp dankogai $
+# $Id: Encode.pm,v 2.25 2008/05/07 20:56:05 dankogai Exp dankogai $
#
package Encode;
use strict;
use warnings;
-our $VERSION = sprintf "%d.%02d", q$Revision: 2.24 $ =~ /(\d+)/g;
+our $VERSION = sprintf "%d.%02d", q$Revision: 2.25 $ =~ /(\d+)/g;
sub DEBUG () { 0 }
use XSLoader ();
XSLoader::load( __PACKAGE__, $VERSION );
our %EXPORT_TAGS = (
all => [ @EXPORT, @EXPORT_OK ],
- fallbacks => [@FB_CONSTS],
+ default => [ @EXPORT ],
+ fallbacks => [ @FB_CONSTS ],
fallback_all => [ @FB_CONSTS, @FB_FLAGS ],
);
#
-# $Id: Makefile.PL,v 2.5 2007/05/29 18:15:32 dankogai Exp $
+# $Id: Makefile.PL,v 2.6 2008/05/07 20:56:05 dankogai Exp dankogai $
#
use 5.007003;
use strict;
use strict;
use warnings;
no warnings 'redefine';
-our $VERSION = '2.8_01';# 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 };
sub DEBUG () { 0 }
use base qw(Exporter);
use strict;
use warnings;
+use utf8 ();
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);
$ret .= "\x7E\x7D"; # '~}'
$in_ascii = 1;
}
+ utf8::encode($ret); # https://rt.cpan.org/Ticket/Display.html?id=35120
return $ret;
}
#
-# $Id: GSM0338.pm,v 2.0 2007/04/22 14:54:22 dankogai Exp $
+# $Id: GSM0338.pm,v 2.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
package Encode::GSM0338;
use Carp;
use vars qw($VERSION);
-$VERSION = do { my @r = ( q$Revision: 2.0 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+$VERSION = do { my @r = ( q$Revision: 2.1 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use Encode qw(:fallbacks);
}
else {
$u =
- exists $GSM2UNI{$c} ? $GSM2UNI{$c}
- : $chk
- ? croak sprintf( "\\x%02X does not map to Unicode", ord($c) )
+ exists $GSM2UNI{$c}
+ ? $GSM2UNI{$c}
+ : $chk ? ref $chk eq 'CODE'
+ ? $chk->( ord $c )
+ : croak sprintf( "\\x%02X does not map to Unicode", ord($c) )
: $FBCHAR;
}
$str .= $u;
my $u = substr( $str, 0, 1, '' );
my $c;
$bytes .=
- exists $UNI2GSM{$u} ? $UNI2GSM{$u}
- : $chk
- ? croak sprintf( "\\x{%04x} does not map to %s",
- ord($u), $obj->name )
+ exists $UNI2GSM{$u}
+ ? $UNI2GSM{$u}
+ : $chk ? ref $chk eq 'CODE'
+ ? $chk->( ord($u) )
+ : croak sprintf( "\\x{%04x} does not map to %s",
+ ord($u), $obj->name )
: $FBCHAR;
}
$_[1] = $str if $chk;
#
-# $Id: cp850.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp850.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP850.TXT
#
-# $Id: cp852.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp852.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP852.TXT
#
-# $Id: cp855.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp855.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP855.TXT
#
-# $Id: cp856.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp856.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MISC/CP856.TXT
#
-# $Id: cp857.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp857.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP857.TXT
#
-# $Id: cp858.ucm,v 1.1 2008/03/12 09:51:11 dankogai Exp $
+# $Id: cp858.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# cf. http://en.wikipedia.org/wiki/Code_page_858
#
#
-# $Id: cp860.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp860.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP860.TXT
#
-# $Id: cp861.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp861.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP861.TXT
#
-# $Id: cp862.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp862.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP862.TXT
#
-# $Id: cp863.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp863.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP863.TXT
#
-# $Id: cp864.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp864.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP864.TXT
#
-# $Id: cp865.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp865.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP865.TXT
#
-# $Id: cp866.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp866.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP866.TXT
#
-# $Id: cp869.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp869.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP869.TXT
#
-# $Id: cp874.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp874.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP874.TXT
#
-# $Id: cp875.ucm,v 2.0 2004/05/16 20:55:21 dankogai Exp $
+# $Id: cp875.ucm,v 1.1 2008/05/07 20:56:05 dankogai Exp dankogai $
#
# Original table can be obtained at
# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/EBCDIC/CP875.TXT