diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-05-17 11:33:08 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2024-05-17 16:42:14 -0400 |
commit | cce7c25a42cbe46b9daea7c1e0accda00fe91c43 (patch) | |
tree | 1d36c596d8578933388e08b7ba40da779f0d422a | |
parent | e61d24d77e53a4114da64948c072380c7270d309 (diff) |
[PRISM] Enable TestRequire
-rw-r--r-- | prism_compile.c | 1 | ||||
-rw-r--r-- | test/.excludes-prism/TestRequire.rb | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c index 9207f7a5f5..44ac70d2fa 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -9454,6 +9454,7 @@ pm_load_file(pm_parse_result_t *result, VALUE filepath, bool load_error) VALUE pm_parse_file(pm_parse_result_t *result, VALUE filepath) { + result->node.filepath_encoding = rb_enc_get(filepath); pm_options_filepath_set(&result->options, RSTRING_PTR(filepath)); RB_GC_GUARD(filepath); diff --git a/test/.excludes-prism/TestRequire.rb b/test/.excludes-prism/TestRequire.rb deleted file mode 100644 index cb35d59c60..0000000000 --- a/test/.excludes-prism/TestRequire.rb +++ /dev/null @@ -1 +0,0 @@ -exclude(:test_require_nonascii_path_shift_jis, "requiring non-ascii paths") |