mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/iconv/iconv.c (Init_iconv): warn deprecated use.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5cf605b1d2
commit
430c1d3fe4
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Oct 27 23:55:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/iconv/iconv.c (Init_iconv): warn deprecated use.
|
||||
|
||||
Wed Oct 27 18:50:17 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* bignum.c (rb_big2long, rb_big2ulong): rb2ulong() returns VALUE, but
|
||||
|
|
|
@ -1184,6 +1184,7 @@ Init_iconv(void)
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue