summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index 78b87fc6ac..0961f34ce5 100644
--- a/io.c
+++ b/io.c
@@ -4564,6 +4564,7 @@ io_strip_bom(VALUE io)
rb_io_ungetbyte(io, INT2FIX(b4));
}
else {
+ rb_io_ungetbyte(io, INT2FIX(b3));
return rb_enc_find_index("UTF-16LE");
}
rb_io_ungetbyte(io, INT2FIX(b3));