From: Run Paint Run Run Date: 2010-06-08T06:56:55+09:00 Subject: [ruby-core:30644] [Bug #3407] Kernel.open Ignores 'BOM|' Prefix of :encoding Value Issue #3407 has been updated by Run Paint Run Run. Much obliged. Is the following intended? File.read('/tmp/bom', external_encoding: 'BOM|UTF-8') #=> ArgumentError: unknown encoding name - BOM|UTF-8 (I also noticed that io_encname_bom_p() appears to allow all 'UTF-' encodings to be prefixed with 'BOM|', yet io_strip_bom() doesn't strip the UTF-7 BOM. If I'm correct, an encoding of 'BOM|UTF-7' should probably be forbidden rather than silently discarded.) ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3407 ---------------------------------------- http://redmine.ruby-lang.org