Bug #8775 » dir.getwd.patch
| dir.c (working copy) | ||
|---|---|---|
|
path = my_getcwd();
|
||
|
cwd = rb_tainted_str_new2(path);
|
||
|
rb_enc_associate(cwd, rb_filesystem_encoding());
|
||
|
cwd = rb_str_encode_ospath(cwd);
|
||
|
xfree(path);
|
||
|
return cwd;
|
||