[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:21648

From: matz ruby-lang.org
Date: Fri, 21 Dec 2007 16:02:56 +0900 (JST)
Subject: [ruby-cvs:21648] Ruby:r14411 (trunk): * io.c (rb_io_s_read): allow specifying encoding explicitly.

matz	2007-12-21 16:02:55 +0900 (Fri, 21 Dec 2007)

  New Revision: 14411

  Modified files:
    trunk/ChangeLog
    trunk/encoding.c
    trunk/io.c
    trunk/numeric.c

  Log:
    * io.c (rb_io_s_read): allow specifying encoding explicitly.
    
    * io.c (rb_io_binmode): specifies encoding to ASCII-8BIT (binary).
    
    * io.c (rb_io_s_read): IO should be in binary mode when offset is
      specified.
    
    * encoding.c (rb_to_encoding): returns default encoding if no
      corresponding encoding found.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/numeric.c?r1=14411&r2=14410
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14411&r2=14410
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=14411&r2=14410
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=14411&r2=14410


[前][次][番号順一覧][スレッド一覧][生データ]