diff options
author | Steve Peters <steve@fisharerojo.org> | 2007-04-25 01:06:23 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2007-04-25 01:06:23 +0000 |
commit | 44b3b9c710e4ffb3c3fb08c702ea4f981c927631 (patch) | |
tree | 5a14966cc3852db828c4b83984fed3a1b768ddb2 /ext/Encode/encoding.pm | |
parent | 6d62b57de119943ad42625b9ea2237bdac6e25bb (diff) | |
download | perl-44b3b9c710e4ffb3c3fb08c702ea4f981c927631.tar.gz |
Upgrade to Encode-2.20
p4raw-id: //depot/perl@31061
Diffstat (limited to 'ext/Encode/encoding.pm')
-rw-r--r-- | ext/Encode/encoding.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/Encode/encoding.pm b/ext/Encode/encoding.pm index fff7adba11..7b8eee416f 100644 --- a/ext/Encode/encoding.pm +++ b/ext/Encode/encoding.pm @@ -1,6 +1,6 @@ -# $Id: encoding.pm,v 2.5 2007/04/06 12:53:41 dankogai Exp dankogai $ +# $Id: encoding.pm,v 2.6 2007/04/22 14:56:12 dankogai Exp dankogai $ package encoding; -our $VERSION = do { my @r = ( q$Revision: 2.5 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r }; +our $VERSION = do { my @r = ( q$Revision: 2.6 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r }; use Encode; use strict; @@ -323,6 +323,14 @@ always the same as the length of C<$/> in the native encoding. This pragma affects utf8::upgrade, but not utf8::downgrade. +=head2 Side effects + +If the C<encoding> pragma is in scope then the lengths returned are +calculated from the length of C<$/> in Unicode characters, which is not +always the same as the length of C<$/> in the native encoding. + +This pragma affects utf8::upgrade, but not utf8::downgrade. + =head1 FEATURES THAT REQUIRE 5.8.1 Some of the features offered by this pragma requires perl 5.8.1. Most |