Skip to content

Commit

Permalink
When reading Perl 6 files, evalfiles needs to assume utf8 encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed May 14, 2009
1 parent 9d66422 commit c223b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/builtins/eval.pir
Expand Up @@ -38,7 +38,8 @@ itself can be found in src/builtins/control.pir.
lang_compile:
.local pmc compiler
compiler = compreg lang
.tailcall compiler.'evalfiles'(filename)
# XXX FIXME: We should allow the compiler to choose default encoding/transcode
.tailcall compiler.'evalfiles'(filename, 'encoding'=>'utf8', 'transcode'=>'ascii')

lang_parrot:
## load_bytecode currently doesn't accept non-ascii filenames (TT #65)
Expand Down

0 comments on commit c223b06

Please sign in to comment.