summaryrefslogtreecommitdiffstats
path: root/re.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 00:44:15 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 00:44:15 +0000
commit576551ed42a5825f6d30d301e013493cb84a684f (patch)
tree2fe691215d0b413b33a7ab4199e80c31d24c063b /re.c
parent9efc8b05abddd664c5b4e79e9e41b57a7ffd353b (diff)
downloadruby-576551ed42a5825f6d30d301e013493cb84a684f.tar.gz
ruby-576551ed42a5825f6d30d301e013493cb84a684f.tar.xz
ruby-576551ed42a5825f6d30d301e013493cb84a684f.zip
* re.c (rb_char_to_option_kcode): Regexp switch `s' should mean
Windows-31J, as wells as `-Ks'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index f17e276bb..67e56cdc6 100644
--- a/re.c
+++ b/re.c
@@ -188,7 +188,7 @@ rb_char_to_option_kcode(int c, int *option, int *kcode)
*kcode = rb_enc_find_index("EUC-JP");
break;
case 's':
- *kcode = rb_enc_find_index("Shift_JIS");
+ *kcode = rb_enc_find_index("Windows-31J");
break;
case 'u':
*kcode = rb_enc_find_index("UTF-8");