Issue #6268 has been reported by tenderlovemaking (Aaron Patterson).

----------------------------------------
Backport #6268: backport r35245 and r35248
https://bugs.ruby-lang.org/issues/6268

Author: tenderlovemaking (Aaron Patterson)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


I would like to backport r35245 and r35248 in order to fix Bug #6266.  The patch defaults the YAML parser encoding on unknown encodings to "ANY" encoding.  Essentially guessing.  I'm making the change to remain backwards compatible with files that are incorrectly opened.

I've attached the patch.  Thanks!


-- 
http://bugs.ruby-lang.org/