Bug #8774 » rb_get_dirname.patch
| 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);
|
||