Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Work around Parrot #TT2040. This unbreaks module loading - and thus m…
…ake spectest - on Win32. Not sure why we end up with unicode strings here and not on other platforms, mind.
  • Loading branch information
jnthn committed Mar 6, 2011
1 parent bfdd78d commit 4aa68e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Perl6/Module/Loader.pm
Expand Up @@ -35,7 +35,8 @@ method need($name, %name_adverbs?) {
# stat[7]: modifytime
if pir::stat__ISI($pir_file, 0)
&& pir::stat__ISI($pir_file, 7) >= pir::stat__ISI($pm_file, 7) {
pir::load_bytecode__vS($pir_file);
pir::load_bytecode__vS(pir::trans_encoding__SSI($pir_file,
pir::find_encoding__IS('fixed_8')));
$loaded_pir := 1;
}

Expand Down

0 comments on commit 4aa68e1

Please sign in to comment.