summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index b73dbe80e3..78b87fc6ac 100644
--- a/io.c
+++ b/io.c
@@ -4554,7 +4554,7 @@ io_strip_bom(VALUE io)
case 0xFF:
b2 = FIX2INT(rb_io_getbyte(io));
- if (b2 == 0xFF) {
+ if (b2 == 0xFE) {
b3 = FIX2INT(rb_io_getbyte(io));
if (b3 == 0) {
b4 = FIX2INT(rb_io_getbyte(io));