diff options
author | Martin Langhoff <martin@catalyst.net.nz> | 2006-12-07 06:38:50 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-07 08:47:19 +0300 |
commit | 4f88d3e0cbf443cd309c2c881209f3366f14023d (patch) | |
tree | 164d56b12379c6548546ec73614d636d5e6343d0 | |
parent | 49ed2bc4660c7cd0592cf21cc514080574d06320 (diff) |
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>
-rwxr-xr-x | git-cvsserver.perl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl index ca519b7e49..197014d9e6 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -17,6 +17,7 @@ use strict; use warnings; +use bytes; use Fcntl; use File::Temp qw/tempdir tempfile/; |