Project

General

Profile

Actions

Bug #15908

closed

Detecting BOM with non-UTF encoding

Added by nobu (Nobuyoshi Nakada) almost 5 years ago. Updated over 4 years ago.

Status:
Closed
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 1 (0 open1 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0