Project

General

Profile

Bug #8774 » rb_get_dirname.patch

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

View differences:

file.c (working copy)
3848 3848
	p = root;
3849 3849
    }
3850 3850
    if (p == name)
3851
	return rb_usascii_str_new2(".");
3851
	return rb_enc_str_new(".", strlen("."), enc);
3852 3852
#ifdef DOSISH_DRIVE_LETTER
3853 3853
    if (has_drive_letter(name) && isdirsep(*(name + 2))) {
3854 3854
	const char *top = skiproot(name + 2, end, enc);