bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bugs in dirname module


From: Paul Eggert
Subject: Re: bugs in dirname module
Date: Wed, 09 Nov 2005 13:19:17 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

>> An alternative to editing c-ctype is naming the dirname.h version
>> IS_DRIVE_LETTER instead of c_isalpha.
>
> Yes, this is much better. Also it reflects more closely what the macro is
> used for.

I also agree; sorry, I should have said it that way originally.

However: what happens in DOS if you use a file name like "@:/a/b/c"?
Is this parsed as an invalid file letter, and then rejected, or as a
file name that's much like "@_/a/b/c" but just happens to have an
colon rather than an underscore?  If the former, then surely dirname
should not bother to check whether the first character is a letter.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]