Project

General

Profile

Bug #8774 » rb_get_dirname.patch

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

View differences:

file.c (working copy)
p = root;
}
if (p == name)
return rb_usascii_str_new2(".");
return rb_enc_str_new(".", strlen("."), enc);
#ifdef DOSISH_DRIVE_LETTER
if (has_drive_letter(name) && isdirsep(*(name + 2))) {
const char *top = skiproot(name + 2, end, enc);
    (1-1/1)