Project

General

Profile

Bug #15908

Detecting BOM with non-UTF encoding

Added by nobu (Nobuyoshi Nakada) 10 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:93024]

Description

Currently, "bom|" encoding prefix to File.open is ignored if the encoding name is not a UTF.
But one usage of BOM is to tell if the stream is a UTF or not, and especially common on Windows, e.g. UTF-16LE or OEMCP.
So I think this restriction should be removed.


Files


Related issues

Related to Ruby master - Bug #15210: UTF-8 BOM should be removed from String in internal representationCloseddocsActions

Also available in: Atom PDF