Issue #814 has been updated by Aaron Patterson.

File better.patch added

Here is an even better patch.  With tests.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/814

----------------------------------------
http://redmine.ruby-lang.org