diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-10 14:21:13 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-10 14:21:13 +0000 |
| commit | 1e2695bd9be4f379927d8e4474e09e1c98eea6b5 (patch) | |
| tree | 3a35eefdff7eb4cf18b168eec8a679b24a8234e5 /io.c | |
| parent | 0b928205a47e00dc226fc5e3625375264fabee59 (diff) | |
io.c (io_strip_bom): ungetbyte third byte when UTF-16LE.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)); |
