Project

General

Profile

Backport #8323

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

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. openなどのモード指定にBOMつきのUTFを指定できますが、そこで指定された外部エンコーディングと内部エンコーディングが同じ場合、実際のエンコーディングに関わらず変換が行われません。 
 Since the encoding prefixed with "BOM" is not a real encoding, but just a fallback, the conversion should honor the detected encoding by BOM. 
 BOM指定に付加されたエンコーディングは、実際のエンコーディングではなくてあくまでフォールバックにすぎないので、変換に関してはBOMによって検出されたエンコーディングに従うべきと思われます。

Back