Pit Capitain wrote:
>BTW:
>
>the patch is for ruby 1.6.5, and it is supposed to work like this:
>
>sprintf("%c", 255).succ    >>  "\001\000"
>sprintf("*%c", 255).succ   >>  "+\000"
>sprintf("**%c", 255).succ  >>  "*+\000"

So, '\377' wraps to '\000' and creates a carry of '\001', just as 
'9' wraps to '0' and carries a '1'.  I just thought it might skip 
'\000' (that being the string terminator character and all).  But, 
after looking at the code again, I can see that the literal '\001' 
in there _was_ only meant to serve as the carry.  

Thanks for clearing that up, Pit.

--Alan