-
-
Save FROGGS/603692fde738639fc0d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/loadbytecode.c b/src/core/loadbytecode.c | |
index b0a28f1..826814f 100644 | |
--- a/src/core/loadbytecode.c | |
+++ b/src/core/loadbytecode.c | |
@@ -38,7 +38,7 @@ static MVMString * figure_filename(MVMThreadContext *tc, MVMString *orig) { | |
MVMROOT(tc, orig, { | |
result = MVM_string_utf8_decode(tc, tc->instance->VMString, new_path, new_len); | |
if (!MVM_file_exists(tc, result)) | |
- result = orig; | |
+ result = MVM_string_utf8_decode(tc, tc->instance->VMString, orig_cstr, orig_len); | |
}); | |
free(new_path); | |
return result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment