Project

General

Profile

« Previous | Next » 

Revision fba78633

Added by yugui (Yuki Sonoda) over 15 years ago

merges r25353 and r25362 from trunk into ruby_1_9_1.

  • lib/csv.rb (CSV#read_to_char): set encoding and verify data
    which read from io before encode it to @encoding.

  • lib/csv.rb (CSV#raw_encoding): add to get @io's encoding.

  • lib/csv.rb (CSV#read_io): add to read string and set @io's
    encoding.
    --

  • lib/csv.rb (CSV#raw_encoding): returns ASCII-8BIT when the io
    doesn't have encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e