Skip to content

Commit 4f88d3e

Browse files
Martin LanghoffJunio C Hamano
authored andcommitted
cvsserver: Avoid miscounting bytes in Perl v5.8.x
At some point between v5.6 and 5.8 Perl started to assume its input, output and filehandles are UTF-8. This breaks the counting of bytes for the CVS protocol, resulting in the client expecting less data than we actually send, and storing truncated files. Signed-off-by: Martin Langhoff <martin@catalyst.net.nz> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 49ed2bc commit 4f88d3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-cvsserver.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
use strict;
1919
use warnings;
20+
use bytes;
2021

2122
use Fcntl;
2223
use File::Temp qw/tempdir tempfile/;

0 commit comments

Comments
 (0)