From cce7c25a42cbe46b9daea7c1e0accda00fe91c43 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Fri, 17 May 2024 11:33:08 -0400 Subject: [PATCH] [PRISM] Enable TestRequire --- prism_compile.c | 1 + test/.excludes-prism/TestRequire.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 test/.excludes-prism/TestRequire.rb 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")