Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Last active December 26, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FROGGS/603692fde738639fc0d3 to your computer and use it in GitHub Desktop.
Save FROGGS/603692fde738639fc0d3 to your computer and use it in GitHub Desktop.
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