Committer: gariev
There was a bug in that module Encode is loaded by Class::Autoload and export was not done correctly.U trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2009-01-28 04:28:48 UTC (rev 14810) +++ trunk/cgi-bin/LJ/S2.pm 2009-01-28 08:11:01 UTC (rev 14811) @@ -23,6 +23,7 @@ use Storable; use Apache::Constants (); use POSIX (); +use Encode; package LJ::S2; @@ -4048,10 +4049,9 @@ { my ($ctx, $this, $start, $length) = @_; - use Encode qw/decode_utf8 encode_utf8/; - my $ustr = decode_utf8($this); + my $ustr = Encode::decode_utf8($this); my $result = substr($ustr, $start, $length); - return encode_utf8($result); + return Encode::encode_utf8($result); } sub string__length