From: "naruse (Yui NARUSE)" Date: 2013-07-09T17:33:54+09:00 Subject: [ruby-core:55878] [ruby-trunk - Bug #8611][Feedback] Minitest encoding problems. Issue #8611 has been updated by naruse (Yui NARUSE). Status changed from Open to Feedback You know, this must have reproducible code. ---------------------------------------- Bug #8611: Minitest encoding problems. https://bugs.ruby-lang.org/issues/8611#change-40379 Author: boris_stitnicky (Boris Stitnicky) Status: Feedback Priority: Normal Assignee: Category: Target version: ruby -v: 2.0.0.latest patch Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN A long standing annoying misfeature of minitest is the problem with encoding, which I have solved by patching the backtrace.join line in units.rb, #puke method with map{ |str| str.force_encoding( "UTF-8 ) }. If I don't do this, the tests in irb won't run, instead I get a complaint about "ASCII 8" versus "UTF-8" incompatibility. Only happens when one extensively uses UTF characters when coding, an annoying intermittent error. -- http://bugs.ruby-lang.org/