>>888
・win32/console/ANSIのせいで、rspecオプションに--colourつけると文字化けする
 (というかstdout.writeを上書きできてない)のを修正した。
・UTF-8→SJISの変換の際に、Kconv.tosjis使うと半角カタカナが全角になったり、
 MIMEが変換されたりするのを防止するためにnkf使うように修正

---- spec_helper.rb への追加コード ----

require "nkf"

# convert $stdout to sjis for command prompt at Windows
if !defined?($stdout.old_write_for_sjis_filter) &&
RUBY_PLATFORM =~ /win32/ && ENV['TERM'].nil?
class << $stdout
alias :old_write_for_sjis_filter :write
def write(str)
# change to sjis AS IS
old_write_for_sjis_filter NKF.nkf('-sxm0', str.to_s)
end
end
# puts "overrode $stdout.write"
end

何回もうざくてゴメン。たぶんこれで最後です。