[vhffs-dev] [2265] output cgit configuration file in utf8

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2265
Author:   gradator
Date:     2015-01-25 21:29:00 +0100 (Sun, 25 Jan 2015)
Log Message:
-----------
output cgit configuration file in utf8

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Robots/Git.pm

Modified: trunk/vhffs-api/src/Vhffs/Robots/Git.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Git.pm	2015-01-25 20:04:04 UTC (rev 2264)
+++ trunk/vhffs-api/src/Vhffs/Robots/Git.pm	2015-01-25 20:29:00 UTC (rev 2265)
@@ -234,6 +234,8 @@
 	my ( $tmpfile, $tmppath ) = Vhffs::Robots::tmpfile( $vhffs );
 	return undef unless defined $tmpfile;
 
+	binmode ($tmpfile, ':utf8');
+
 	my $gits = Vhffs::Services::Git::getall( $vhffs, Vhffs::Constants::ACTIVATED );
 	foreach my $git ( @{$gits} )  {
 		next unless $git->is_public;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/