summaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 08:43:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 08:43:56 +0000
commit1d6171160bc5b1dcb5ea9f621e1d570ad201e27d (patch)
tree538e4ab774ea17565aad39e5afa59fdf66e9d9aa /encoding.c
parent439b7f416e2c1584cd040ef7907e3257b93bd33a (diff)
downloadruby-1d6171160bc5b1dcb5ea9f621e1d570ad201e27d.tar.gz
ruby-1d6171160bc5b1dcb5ea9f621e1d570ad201e27d.tar.xz
ruby-1d6171160bc5b1dcb5ea9f621e1d570ad201e27d.zip
* encoding.c (Init_Encoding): registered rb_encoding differs from
ONIG_ENCODINGs. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c
index 969fd94be..955764049 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) {