summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-04 16:14:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-04 16:14:51 +0000
commitafd9ce9d9e00cfc940e4989a34033fa73268d969 (patch)
tree81eb12d1ad0d47c685a3e17d932f20df67fff678 /io.c
parent66b0d426ed2e918aa4ea637faf208a30a0cb97c8 (diff)
* io.c (parse_mode_enc): remove warnings 'Ignoring internal encoding'.
[ruby-core:44455] [Bug #6324] * io.c (io_encoding_set): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/io.c b/io.c
index 96087d6b0d..cacbe10247 100644
--- a/io.c
+++ b/io.c
@@ -4712,7 +4712,6 @@ parse_mode_enc(const char *estr, rb_encoding **enc_p, rb_encoding **enc2_p, int
if (idx2 < 0)
unsupported_encoding(p);
else if (idx2 == idx) {
- rb_warn("Ignoring internal encoding %s: it is identical to external encoding %s", p, estr);
int_enc = (rb_encoding *)Qnil;
}
else
@@ -8788,8 +8787,6 @@ io_encoding_set(rb_io_t *fptr, VALUE v1, VALUE v2, VALUE opt)
if (enc == enc2) {
/* Special case - "-" => no transcoding */
VALUE tmp1 = rb_check_string_type(v1);
- rb_warn("Ignoring internal encoding %s: it is identical to external encoding %s",
- StringValueCStr(tmp), NIL_P(tmp1) ? rb_enc_name(enc) : StringValueCStr(tmp1));
enc2 = NULL;
}
}
@@ -8798,8 +8795,6 @@ io_encoding_set(rb_io_t *fptr, VALUE v1, VALUE v2, VALUE opt)
if (enc == enc2) {
/* Special case - "-" => no transcoding */
VALUE tmp1 = rb_check_string_type(v1);
- rb_warn("Ignoring internal encoding %s: it is identical to external encoding %s",
- rb_enc_name(enc), NIL_P(tmp1) ? rb_enc_name(enc) : StringValueCStr(tmp1));
enc2 = NULL;
}
}