Project

General

Profile

Actions

Bug #15908

closed

Detecting BOM with non-UTF encoding

Added by nobu (Nobuyoshi Nakada) over 2 years ago. Updated about 2 years 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
Actions

Also available in: Atom PDF