scm: fix log converting error in Ruby 1.9 and add more tests.
Authored by: tmaruyama 2011-04-09
Parent: [r5369]
Child: [r5371]