Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix cwd() to transncode the result. Avoids a problem that gets in the…
… way of Panda on Windows.
  • Loading branch information
jnthn committed Aug 18, 2012
1 parent 48e5e46 commit 9db2d9b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/IO.pm
Expand Up @@ -410,7 +410,10 @@ multi sub spurt(Cool $filename,
my class X::IO::Cwd { ... }
proto sub cwd(|) { * }
multi sub cwd() {
return pir::new__Ps('OS').cwd();
return nqp::p6box_s(
pir::trans_encoding__Ssi(
pir::new__Ps('OS').cwd(),
pir::find_encoding__Is('utf8')));

CATCH {
default {
Expand Down

0 comments on commit 9db2d9b

Please sign in to comment.