summaryrefslogtreecommitdiff
path: root/ext/Encode/encoding.pm
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-07 12:45:44 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-07 12:45:44 +0000
commit51e4e64df3bc05a7c291521c55c2654beda56c26 (patch)
tree1572da7d2475f93b3022103968b2b603d1b94512 /ext/Encode/encoding.pm
parent20e98b0f9ccd1237d697ca82b2dc40058ff7f30b (diff)
downloadperl-51e4e64df3bc05a7c291521c55c2654beda56c26.tar.gz
Upgrade to Encode 2.19
p4raw-id: //depot/perl@30866
Diffstat (limited to 'ext/Encode/encoding.pm')
-rw-r--r--ext/Encode/encoding.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/Encode/encoding.pm b/ext/Encode/encoding.pm
index 1f418e3a22..fff7adba11 100644
--- a/ext/Encode/encoding.pm
+++ b/ext/Encode/encoding.pm
@@ -1,6 +1,6 @@
-# $Id: encoding.pm,v 2.4 2006/06/03 20:28:48 dankogai Exp dankogai $
+# $Id: encoding.pm,v 2.5 2007/04/06 12:53:41 dankogai Exp dankogai $
package encoding;
-our $VERSION = do { my @r = ( q$Revision: 2.4 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
+our $VERSION = do { my @r = ( q$Revision: 2.5 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };
use Encode;
use strict;
@@ -315,6 +315,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