Project

General

Profile

Bug #15908

Detecting BOM with non-UTF encoding

Added by nobu (Nobuyoshi Nakada) about 1 month ago.

Status:
Open
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 representationClosedActions

History

#1

Updated by nobu (Nobuyoshi Nakada) about 1 month ago

  • Related to Bug #15210: UTF-8 BOM should be removed from String in internal representation added

Also available in: Atom PDF