alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r18043: LJSUP-7724: Wrong encoding "?\208?\162?\...

Committer: afedorov
LJSUP-7724: Wrong encoding "?\208?\162?\208?\181?\208?\188?\208?\176" in mail

U   trunk/cgi-bin/LJ/Comment.pm
Modified: trunk/cgi-bin/LJ/Comment.pm
===================================================================
--- trunk/cgi-bin/LJ/Comment.pm	2011-01-18 09:09:27 UTC (rev 18042)
+++ trunk/cgi-bin/LJ/Comment.pm	2011-01-18 10:38:24 UTC (rev 18043)
@@ -1049,13 +1049,13 @@
 }
 
 sub indent {
-    my $str = shift;
-    return Encode::encode_utf8( LJ::Talk::Post::indent( Encode::decode_utf8($str), @_) );
+    my @args = map { Encode::decode_utf8($_) } @_;
+    return Encode::encode_utf8( LJ::Talk::Post::indent( @args ) );
 }
 
 sub wrap {
-    my $str = pop;
-    return Encode::encode_utf8( Text::Wrap::wrap( @_, Encode::decode_utf8($str) ) );
+    my @args = map { Encode::decode_utf8($_) } @_;
+    return Encode::encode_utf8( Text::Wrap::wrap( @args ) );
 }
 
 sub blockquote {

Tags: livejournal, pm, red_alf
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments