summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 14:21:04 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 14:21:04 +0000
commitf188db310555c347544d29916dd4a270b8a7419c (patch)
tree27437bd428ea7dbb525faf4af75328caa07d8818 /io.c
parentcdeed3b3ebb6a03f5ee265e1dd98f327fdbb7a8c (diff)
Fix condition of second byte of UTF-16LE/UTF-32LE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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));