ruby-changes:5893
From: naruse <ko1@a...>
Date: Wed, 18 Jun 2008 14:31:57 +0900 (JST)
Subject: [ruby-changes:5893] Ruby:r17401 (trunk): * io.c (rb_open_file): not rb_enc_get_index but rb_enc_get.
naruse 2008-06-18 14:31:35 +0900 (Wed, 18 Jun 2008) New Revision: 17401 Modified files: trunk/ChangeLog trunk/io.c Log: * io.c (rb_open_file): not rb_enc_get_index but rb_enc_get. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17401&r2=17400&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=17401&r2=17400&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 17400) +++ ChangeLog (revision 17401) @@ -1,3 +1,7 @@ +Wed Jun 18 14:30:06 2008 NARUSE, Yui <naruse@r...> + + * io.c (rb_open_file): not rb_enc_get_index but rb_enc_get. + Wed Jun 18 13:49:58 2008 NAKAMURA Usaku <usa@r...> * include/ruby/win32.h (pipe): now pipe is textmode. although this Index: io.c =================================================================== --- io.c (revision 17400) +++ io.c (revision 17401) @@ -4105,7 +4105,7 @@ #if defined _WIN32 || defined __APPLE__ { static int fs_encoding; - int fname_encoding = rb_enc_get_index(fname); + int fname_encoding = rb_enc_get(fname); if (!fs_encoding) fs_encoding = rb_filesystem_encoding(); if (rb_usascii_encoding() != fname_encoding -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/