diff options
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c index 969fd94be7..955764049c 100644 --- a/encoding.c +++ b/encoding.c @@ -1011,7 +1011,7 @@ Init_Encoding(void) /* dummy for unsupported, statefull encoding */ rb_define_dummy_encoding("ISO-2022-JP"); - rb_enc_replicate("Windows-31J", ONIG_ENCODING_SJIS); + rb_enc_replicate("Windows-31J", rb_enc_from_index(ENCINDEX_SJIS)); rb_enc_alias("CP932", "Windows-31J"); for (i = 0; i < enc_table_size; ++i) { |