# File lib/termtter/system_extensions.rb, line 58 def readline(*a) str = old_readline(*a) out = '' loop do begin out << $iconv_sj_to_u8.iconv(str) break rescue Iconv::Failure out << "#{$!.success}?" str = $!.failed[1..-1] end end return out end