Issue #6268 has been updated by drbrain (Eric Hodel). This patch looks good to me. ---------------------------------------- Backport #6268: backport r35245 and r35248 https://bugs.ruby-lang.org/issues/6268#change-25696 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/