Issue #8323 has been updated by nobu (Nobuyoshi Nakada).

File 0001-io.c-conversion-from-bom-encoding.patch added

Updated.
----------------------------------------
Bug #8323: no conversion by "bom|utf-8"
https://bugs.ruby-lang.org/issues/8323#change-38890

Author: nobu (Nobuyoshi Nakada)
Status: Open
Priority: Normal
Assignee: naruse (Yui NARUSE)
Category: M17N
Target version: current: 2.1.0
ruby -v: 2.1.0
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Mode spec in open and etc. accepts BOM-prefix UTF encoding, however if the external and internal encodings given there are same no conversion take place regardless the actual external encoding.
Since the encoding prefixed with "BOM" is not a real encoding, but just a fallback, the conversion should honor the detected encoding by BOM.



-- 
http://bugs.ruby-lang.org/