summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 06:58:58 +0000
committerkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 06:58:58 +0000
commite53990e4bdbf1fc5aa36e5f2150d118f6e324106 (patch)
treebaa876936dda1f620e61164845c14b669d1a0e6c /ruby.c
parentada58fe0130d7818bd4189a76656d2afc34f4268 (diff)
* ruby.c (process_options): fixed default_internal is nil.
(closes #862) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 0b6bb8227e..aa6163c67b 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1244,7 +1244,7 @@ process_options(VALUE arg)
enc = rb_enc_from_index(opt->intern.enc.index);
rb_enc_set_default_internal(rb_enc_from_encoding(enc));
}
- else
+ else if (!rb_default_internal_encoding())
/* Freeze default_internal */
rb_enc_set_default_internal(Qnil);