grosser/parallel_tests — pull request #356 by mmueller (2014-12-14 07:13:22+00:00)
Title: Respect default encoding if present.

This is the pull request that grosser requested in #204. :) This fixes the `UndefinedConversionError` seen in some Ruby environments (where `Encoding.default_internal` is set and non-ASCII characters are output by tests). Commit message follows.

IO#readpartial assumes it is dealing with binary data and always returns
ASCII-8BIT. However, Ruby environments that have Encoding.default_internal set
will attempt to encode() strings to that encoding when performing the
operations listed here:

http://ruby-doc.org/core-1.9.3/Encoding.html#method-c-default_internal