summaryrefslogtreecommitdiff
path: root/ext/iconv/iconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/iconv/iconv.c')
-rw-r--r--ext/iconv/iconv.c1
1 files changed, 1 insertions, 0 deletions
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);