summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-08 19:01:00 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-08 19:01:00 +0000
commitf98da2e5bdf7dc41e4ccc0fd1ffb249345b72f46 (patch)
treead6ac2d7f1431df371bca8ab19508cfb14055c25 /io.c
parentbfe5f25dc7f31fad380de6d574416c2da21d4973 (diff)
downloadruby-f98da2e5bdf7dc41e4ccc0fd1ffb249345b72f46.tar.gz
ruby-f98da2e5bdf7dc41e4ccc0fd1ffb249345b72f46.tar.xz
ruby-f98da2e5bdf7dc41e4ccc0fd1ffb249345b72f46.zip
* io.c (make_writeconv): useless branch removed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/io.c b/io.c
index d45018615..93447db53 100644
--- a/io.c
+++ b/io.c
@@ -729,14 +729,6 @@ make_writeconv(rb_io_t *fptr)
denc = enc->name;
fptr->writeconv_stateless = rb_str_new2(senc);
}
- else if ((fptr->encs.ecflags & ECONV_STATEFUL_ENCODER_MASK) && !rb_enc_asciicompat(enc)) {
- /* xxx: stateful encoder works for ASCII compatible encoding.
- * So we need to choose an encoding which is ASCII compatible and superset of enc.
- * For encodings which is superset of UTF-8, UTF-8 is not appropriate choice. */
- senc = "UTF-8";
- denc = enc->name;
- fptr->writeconv_stateless = rb_str_new2("UTF-8");
- }
else {
senc = denc = "";
fptr->writeconv_stateless = rb_str_new2(enc->name);