From: Run Paint Run Run Date: 2010-06-06T08:38:41+09:00 Subject: [ruby-core:30606] Re: The `open` Methods and Their Many Arguments Can I assume that the below is a bug? (I'm being conservative in opening new tickets because I don't want to clutter the tracker while the 1.9.2 release is being planned). >> open('/tmp/bom', mode: ?w){|f| f << "\xEF\xBB\xBFfoo"} >> [*open('/tmp/bom', encoding: 'BOM|utf-8').read.bytes] => [239, 187, 191, 102, 111, 111] >> [*open('/tmp/bom', mode: 'r:BOM|utf-8').read.bytes] => [102, 111, 111] >> [*open('/tmp/bom', 'r:BOM|utf-8').read.bytes] => [102, 111, 111]