Project

General

Profile

Bug #8775 » dir.getwd.patch

jiayp@glodon.com (贾 延平), 08/11/2013 03:33 PM

View differences:

dir.c (working copy)
891 891
    path = my_getcwd();
892 892
    cwd = rb_tainted_str_new2(path);
893 893
    rb_enc_associate(cwd, rb_filesystem_encoding());
894
    cwd = rb_str_encode_ospath(cwd);
894 895

  
895 896
    xfree(path);
896 897
    return cwd;