User: sits
Date: 06/05/30 22:31:07
Modified: lib/Codestriker/Action SubmitNewTopic.pm
Log:
When retrieving text from a repository, initially mark the text as
binary before it is fed to the decoding/parsing routines. This now
allows Chinese source code retrieved from CVS to display correctly.
Index: SubmitNewTopic.pm
===================================================================
RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Action/SubmitNewTopic.pm,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- SubmitNewTopic.pm 30 May 2006 07:18:09 -0000 1.28
+++ SubmitNewTopic.pm 31 May 2006 05:31:07 -0000 1.29
@@ -188,8 +188,8 @@
$temp_topic_fh = tempfile();
$temp_error_fh = tempfile();
}
- binmode $temp_topic_fh, ':utf8';
- binmode $temp_error_fh, ':utf8';
+ binmode $temp_topic_fh;
+ binmode $temp_error_fh;
my $rc = $repository->getDiff($start_tag, $end_tag, $module,
$temp_topic_fh, $temp_error_fh,
|