@matheusbsbs / matheus-bagliano / commits / 4f88d3e0cb
Fork 0

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>

Martin Langhoff committed Dec 7, 2006 at 16:38 UTC 4f88d3e0cbf443cd309c2c881209f3366f14023d
1 file changed +1
git-cvsserver.perl
+1
@@ -17,6 +17,7 @@
17
18 use strict;
19 use warnings;
20 +use bytes;
21
22 use Fcntl;
23 use File::Temp qw/tempdir tempfile/;