script_name's encoding is wrong
there's some wrong encoded string in exception's callstack couse by the script_name;s encoding is wrong .
#4 [ruby-core:56570] Updated by email@example.com (贾 延平) over 4 years ago
I have seen the error handling code and don't know how to fix the error.
I once think ruby will do the encode work at the boundary of the external system as soon as possible,And keep the internal system clear with the internal encoding.If not so,How we know when to encode to what encoding?
#5 [ruby-core:56571] Updated by firstname.lastname@example.org (贾 延平) over 4 years ago
In this call flow
rb_f_load -> rb_load_internal -> rb_load_file_str -> load_file -> load_file_internal -> rb_parser_compile_string_path
When load a utf-8 encoded path will be considered a filesystem encoded path and load failure.