ruby-changes:17608
From: nobu <ko1@a...>
Date: Thu, 28 Oct 2010 00:01:28 +0900 (JST)
Subject: [ruby-changes:17608] Ruby:r29613 (trunk): * ext/iconv/iconv.c (Init_iconv): warn deprecated use.
nobu 2010-10-27 23:55:31 +0900 (Wed, 27 Oct 2010) New Revision: 29613 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29613 Log: * ext/iconv/iconv.c (Init_iconv): warn deprecated use. Modified files: trunk/ChangeLog trunk/ext/iconv/iconv.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29612) +++ ChangeLog (revision 29613) @@ -1,3 +1,7 @@ +Wed Oct 27 23:55:27 2010 Nobuyoshi Nakada <nobu@r...> + + * ext/iconv/iconv.c (Init_iconv): warn deprecated use. + Wed Oct 27 18:50:17 2010 NAKAMURA Usaku <usa@r...> * bignum.c (rb_big2long, rb_big2ulong): rb2ulong() returns VALUE, but Index: ext/iconv/iconv.c =================================================================== --- ext/iconv/iconv.c (revision 29612) +++ ext/iconv/iconv.c (revision 29613) @@ -1184,6 +1184,7 @@ { VALUE rb_cIconv = rb_define_class("Iconv", rb_cData); + rb_warn("iconv will be deprecated in the future, use String#encode instead."); rb_define_alloc_func(rb_cIconv, iconv_s_allocate); rb_define_singleton_method(rb_cIconv, "open", iconv_s_open, -1); rb_define_singleton_method(rb_cIconv, "iconv", iconv_s_iconv, -1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/