From 430c1d3fe4d107e141676fedf56ace98221b3b99 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 27 Oct 2010 14:55:31 +0000 Subject: * 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 --- ChangeLog | 4 ++++ ext/iconv/iconv.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6183d05250..90da171c55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Oct 27 23:55:27 2010 Nobuyoshi Nakada + + * ext/iconv/iconv.c (Init_iconv): warn deprecated use. + Wed Oct 27 18:50:17 2010 NAKAMURA Usaku * bignum.c (rb_big2long, rb_big2ulong): rb2ulong() returns VALUE, but diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index d2cb4ddf11..2aab1e92f4 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -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); -- cgit v1.2.3