Gurusamy Sarathy <gsar@activestate.com>
H.Merijn Brand <h.m.brand@hccnet.nl>
Hugo van der Sanden <hv@crypt.org>
-Inaba HIroto <inaba@st.rim.or.jp>
+Inaba Hiroto <inaba@st.rim.or.jp>
Jarkko Hietaniemi <jhi@iki.fi>
Jungshik Shin <jshin@mailaps.org>
Laszlo Molnar <ml1050@freemail.hu>
# Revision history for Perl extension Encode.
#
-# $Id: Changes,v 1.90 2003/03/09 17:32:43 dankogai Exp $
+# $Id: Changes,v 1.91 2003/03/09 20:07:37 dankogai Exp dankogai $
#
-$Revision: 1.90 $ $Date: 2003/03/09 17:32:43 $
+$Revision: 1.91 $ $Date: 2003/03/09 20:07:37 $
+! encoding.pm
+ even more proofread by jhi.
+ Message-Id: <20030309194323.GT20843@kosh.hut.fi>
+! t/enc_module.t
+ -use lib 't';
+ +use lib qw(t ext/Encode/t ../ext/Encode/t);
+ Message-Id: <20030309182057.GR20843@kosh.hut.fi>
+! AUTHORS
+ s/Hirohito/Hiroto/ig; Sorry, Hiroto-san.
+ Message-Id: <20030309181748.GP20843@kosh.hut.fi>
+! encoding.pm
+ s/logner/longer/
+ Message-Id: <20030309181907.GQ20843@kosh.hut.fi>
+
+1.90 2003/03/09 17:32:43
! encoding.pm
+ t/enc_data.t
Inaba-san has added a patch for perl 5.8.1 or later that makes
#
-# $Id: Encode.pm,v 1.90 2003/03/09 17:32:18 dankogai Exp $
+# $Id: Encode.pm,v 1.91 2003/03/09 20:07:20 dankogai Exp $
#
package Encode;
use strict;
-our $VERSION = do { my @r = (q$Revision: 1.90 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 1.91 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
our $DEBUG = 0;
use XSLoader ();
XSLoader::load(__PACKAGE__, $VERSION);
-# $Id: encoding.pm,v 1.43 2003/03/09 17:32:43 dankogai Exp $
+# $Id: encoding.pm,v 1.44 2003/03/09 20:07:37 dankogai Exp dankogai $
package encoding;
-our $VERSION = do { my @r = (q$Revision: 1.43 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+our $VERSION = do { my @r = (q$Revision: 1.44 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
use Encode;
use strict;
Rewind to the future: starting from perl 5.8.0 with the B<encoding>
pragma, you can write your script in any encoding you like (so long
as the C<Encode> module supports it) and still enjoy Unicode support.
-This pragma achieves that by doing the followings;
+This pragma achieves that by doing the following:
=over
=head1 FEATURES THAT REQUIRE 5.8.1
Some of the features offered by this pragma requires perl 5.8.1. Most
-of these works are by Inaba Hirohito. Any other features and changes
+of these are done by Inaba Hiroto. Any other features and changes
are good for 5.8.0.
=over
=item "NON-EUC" doublebyte encodings
-Because perl needs to parse script before applying this pragma, Such
+Because perl needs to parse script before applying this pragma, such
encodings as Shift_JIS and Big-5 that may contain '\' (BACKSLASH;
\x5c) in the second byte fails because the second byte may
-accidentally escapes the quoting character that follows. Perl 5.8.1
+accidentally escape the quoting character that follows. Perl 5.8.1
or later fixes this problem.
=item tr//
B<use encoding> can appear as many times as you want in a given script.
The multiple use of this pragma is discouraged.
-Because of this nature -- the influence of this pragma lasts not only
-for the module but the script that uses the use of this pragma inside
---, it is not recommended that you use this pragma inside modules.
+By the same reason, the use this pragma inside modules is also
+discouraged (though not as strongly discouranged as the case above.
+See below).
If you still have to write a module with this pragma, be very careful
of the load order. See the codes below;
=over
-=item literals in regex that are logner than 127 bytes
+=item literals in regex that are longer than 127 bytes
For native multibyte encodings (either fixed or variable length),
the current implementation of the regular expressions may introduce