summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 67b5a4fd3a..0b4929d88a 100644
--- a/ruby.c
+++ b/ruby.c
@@ -758,6 +758,10 @@ proc_options(int argc, char **argv, struct cmdline_options *opt)
if (!*++s) goto next_encoding;
goto encoding;
+ case 'U':
+ opt->intern.enc.name = rb_str_new2("utf-8");
+ break;
+
case 'K':
if (*++s) {
const char *enc_name = 0;