Code

cvsserver: Avoid miscounting bytes in Perl v5.8.x
authorMartin Langhoff <martin@catalyst.net.nz>
Thu, 7 Dec 2006 03:38:50 +0000 (16:38 +1300)
committerJunio C Hamano <junkio@cox.net>
Thu, 7 Dec 2006 05:47:19 +0000 (21:47 -0800)
commit4f88d3e0cbf443cd309c2c881209f3366f14023d
tree164d56b12379c6548546ec73614d636d5e6343d0
parent49ed2bc4660c7cd0592cf21cc514080574d06320
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>
git-cvsserver.perl