Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix File.read with UTF-16LE #2605
File.open("a.txt", "w+") do |f| f.write "\xFF\xFE" f.close end File.read("a.txt", mode: "rb:bom|utf-8")
A check for a null value seems to be missing after the BOM.