diff options
Diffstat (limited to 'transcode.c')
-rw-r--r-- | transcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c index cd3f56dc6b..002024e104 100644 --- a/transcode.c +++ b/transcode.c @@ -345,7 +345,7 @@ str_transcode(int argc, VALUE *argv, VALUE *self) } /* set encoding */ if (!to_enc) { - to_encidx = rb_enc_replicate(to_e, rb_default_encoding()); + to_encidx = rb_enc_replicate(to_e, rb_ascii_encoding()); } *self = dest; |