Skip to content

Commit

Permalink
more fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jan 14, 2009
1 parent ca7e999 commit 02c0807
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/termtter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def readline(*a)
out << $iconv_sj_to_u8.iconv(str)
break
rescue Iconv::Failure
out << $!.success
str = $!.failed
out << "#{$!.success}?"
str = $!.failed[1..-1]
end
end
return out
Expand Down Expand Up @@ -98,8 +98,8 @@ def puts(str)
STDOUT.print $iconv_u8_to_sj.iconv(token)
break
rescue Iconv::Failure
STDOUT.print $!.success
token = $!.failed
STDOUT.print "#{$!.success}?"
token = $!.failed[1..-1]
end
end
end
Expand Down

0 comments on commit 02c0807

Please sign in to comment.