# Revision history for Perl extension Encode.
#
-# $Id: Changes,v 1.33 2002/04/10 22:28:40 dankogai Exp dankogai $
+# $Id: Changes,v 1.34 2002/04/12 20:23:05 dankogai Exp dankogai $
#
-1.33 $Date: 2002/04/10 22:28:40 $
+1.34 $Date: 2002/04/12 20:23:05 $ (Unreleased)
+! Encode.pm
+! t/Unicode.t
+ EBCDIC fixes addressed by jhi.
+ Message-Id: <20020412161844.D9383@alpha.hut.fi>
+! lib/Encode/Encoder.pm
+ POD fix by Miyagawa-kun
+ Message-Id: <86bscqq4hu.wl@mail.edge.co.jp>
+
+1.33 2002/04/10 22:28:40
! AUTHORS
Philip's mail address corrected.
! AUTHORS
* encoding() no longer exported by default but on demand
* t/Encoder.t updated to test all these
Message-Id: <86hemjpdn4.wl@mail.edge.co.jp>
- http://www.dan.co.jp/~dankogai/Storable.diff.gz
+! lib/Encode/Unicode.pm
+! lib/Encode/Supported.pm
+ Further doc fixes by Anton
1.32 2002/04/09 20:06:15
+ bin/ucmlint
Typo fixes and improvements by jhi
Message-Id: <200204010201.FAA03564@alpha.hut.fi>, et al.
-1.11 $Date: 2002/04/10 22:28:40 $
+1.11 $Date: 2002/04/12 20:23:05 $
+ t/encoding.t
+ t/jperl.t
! MANIFEST
package Encode;
use strict;
-our $VERSION = do { my @r = (q$Revision: 1.33 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 1.34 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
our $DEBUG = 0;
require DynaLoader;
$_[1] = '' if $chk;
return $res;
};
- $Encode::Encoding{Internal} =
+ $Encode::Encoding{Unicode} =
bless {Name => "UTF_EBCDIC"} => "Encode::UTF_EBCDIC";
} else {
# was in Encode::UTF_EBCDIC
#
-# $Id: Encoder.pm,v 0.3 2002/04/10 22:28:40 dankogai Exp dankogai $
+# $Id: Encoder.pm,v 0.4 2002/04/12 20:23:05 dankogai Exp dankogai $
#
package Encode::Encoder;
use strict;
use warnings;
-our $VERSION = do { my @r = (q$Revision: 0.3 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 0.4 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
require Exporter;
our @ISA = qw(Exporter);
use Encode::Encoder;
# Encode::encode("ISO-8859-1", $data);
- Encoder->new($data)->iso_8859_1; # OOP way
+ Encode::Encoder->new($data)->iso_8859_1; # OOP way
# shortcut
use Encode::Encoder qw(encoder);
encoder($data)->iso_8859_1;
#
-# $Id: Encoder.t,v 1.2 2002/04/10 22:28:40 dankogai Exp dankogai $
+# $Id: Encoder.t,v 1.2 2002/04/10 22:28:40 dankogai Exp $
#
BEGIN {
#
-# $Id: Unicode.t,v 1.5 2002/04/08 14:17:19 dankogai Exp $
+# $Id: Unicode.t,v 1.6 2002/04/12 20:23:05 dankogai Exp dankogai $
#
# This script is written entirely in ASCII, even though quoted literals
# do include non-BMP unicode characters -- Are you happy, jhi?
# print "1..0 # Skip: PerlIO was not built\n";
# exit 0;
# }
- if (ord("A") == 193) {
- print "1..0 # Skip: EBCDIC\n";
- exit 0;
- }
+# should work on EBCDIC
+# if (ord("A") == 193) {
+# print "1..0 # Skip: EBCDIC\n";
+# exit 0;
+# }
$| = 1;
}
# http://www.unicode.org/unicode/reports/tr19/
#
-my $nasty = "\x{004D}\x{0061}\x{1abcd}";
-my $fallback = "\x{004D}\x{0061}\x{fffd}";
+my $dankogai = "\x{5c0f}\x{98fc}\x{3000}\x{5f3e}";
+my $nasty = "$dankogai\x{1abcd}";
+my $fallback = "$dankogai\x{fffd}";
#hi: (0x1abcd - 0x10000) / 0x400 + 0xD800 = 0xd82a
#lo: (0x1abcd - 0x10000) % 0x400 + 0xDC00 = 0xdfcd
my $n_16be =
- pack("C*", map {hex($_)} qw<00 4D 00 61 d8 2a df cd>);
+ pack("C*", map {hex($_)} qw<5c 0f 98 fc 30 00 5f 3e d8 2a df cd>);
my $n_16le =
- pack("C*", map {hex($_)} qw<4D 00 61 00 2a d8 cd df>);
+ pack("C*", map {hex($_)} qw<0f 5c fc 98 00 30 3e 5f 2a d8 cd df>);
my $f_16be =
- pack("C*", map {hex($_)} qw<00 4D 00 61 ff fd>);
+ pack("C*", map {hex($_)} qw<5c 0f 98 fc 30 00 5f 3e ff fd>);
my $f_16le =
- pack("C*", map {hex($_)} qw<4D 00 61 00 fd ff>);
-my $n_32be =
- pack("C*", map {hex($_)} qw<00 00 00 4D 00 00 00 61 00 01 ab cd>);
+ pack("C*", map {hex($_)} qw<0f 5c fc 98 00 30 3e 5f fd ff>);
+my $n_32be =
+ pack("C*", map {hex($_)}
+ qw<00 00 5c 0f 00 00 98 fc 00 00 30 00 00 00 5f 3e 00 01 ab cd>);
my $n_32le =
- pack("C*", map {hex($_)} qw<4D 00 00 00 61 00 00 00 cd ab 01 00>);
+ pack("C*", map {hex($_)}
+ qw<0f 5c 00 00 fc 98 00 00 00 30 00 00 3e 5f 00 00 cd ab 01 00>);
my $n_16bb = pack('n', 0xFeFF) . $n_16be;
my $n_16lb = pack('v', 0xFeFF) . $n_16le;