The following code display nil and 0 instead of 1 and 1:
strscan = StringScanner.new('AB')
strscan = StringScanner.new('AA')
Note that this only happens in the trunk, 0.9.8 works fine. In fact I think it was working fine yesterday, but today's version does not.