fix string slicing under 1.9 after short writes
commitd2f240d7ea11738ba889668a669ffb7845d06e7b
authorEric Wong <normalperson@yhbt.net>
Tue, 6 Jul 2010 09:58:40 +0000 (6 09:58 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 6 Jul 2010 10:05:13 +0000 (6 10:05 +0000)
tree020802df1f92f750ee91f0834c09bac0e304c3a2
parent0283928fca45a012b31662b30b49990dac2aae18
fix string slicing under 1.9 after short writes

Fortunately this only affects the hardly-used FiberSpawn and
FiberPool concurrency models, and also unreleased revisions of
Rev.  1.9 encoding is tricky to handle right when doing I/O in
Ruby...
lib/rainbows.rb
lib/rainbows/byte_slice.rb [new file with mode: 0644]
lib/rainbows/fiber/io.rb
lib/rainbows/rev/client.rb
t/t0016-onenine-encoding-is-tricky.sh [new file with mode: 0755]
t/t0016.rb [new file with mode: 0644]