This issue was solved with changeset r39601.
yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
This issue was solved with changeset r39912.
yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 39601 and 39602(partially): [Backport #7983]