Skip to content

Commit

Permalink
cvsserver: Avoid miscounting bytes in Perl v5.8.x
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Langhoff authored and Junio C Hamano committed Dec 7, 2006
1 parent 49ed2bc commit 4f88d3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

use strict;
use warnings;
use bytes;

use Fcntl;
use File::Temp qw/tempdir tempfile/;
Expand Down

0 comments on commit 4f88d3e

Please sign in to comment.