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>
This commit is contained in:

committed by
Junio C Hamano

parent
49ed2bc466
commit
4f88d3e0cb
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
use bytes;
|
||||||
|
|
||||||
use Fcntl;
|
use Fcntl;
|
||||||
use File::Temp qw/tempdir tempfile/;
|
use File::Temp qw/tempdir tempfile/;
|
||||||
|
Reference in New Issue
Block a user