summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/ruby.c b/ruby.c
index d0ad1e2..88e76b9 100644
--- a/ruby.c
+++ b/ruby.c
@@ -176,24 +176,7 @@ proc_options(argcp, argvp)
break;
case 'C':
- switch (optarg[0]) {
- case 'E':
- case 'e':
- obscure_syntax &= ~RE_MBCTYPE_MASK;
- obscure_syntax |= RE_MBCTYPE_EUC;
- break;
- case 'S':
- case 's':
- obscure_syntax &= ~RE_MBCTYPE_MASK;
- obscure_syntax |= RE_MBCTYPE_SJIS;
- break;
- default:
- case 'N':
- case 'n':
- obscure_syntax &= ~RE_MBCTYPE_MASK;
- break;
- }
- re_set_syntax(obscure_syntax);
+ rb_set_kanjicode(optarg);
break;
case 'S':