1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

(file_name_absolute_p) [WINDOWSNT]: Support absolute file names with forward

slashes.
This commit is contained in:
Eli Zaretskii 2006-11-24 20:59:01 +00:00
parent 365bba5e7e
commit cb0297bb1a
2 changed files with 6 additions and 1 deletions

View file

@ -452,7 +452,7 @@ file_name_absolute_p (filename)
#ifdef WINDOWSNT
/* X:\xxx is always absolute; X:xxx is an error and will fail. */
if (islower (tolower (filename[0]))
&& filename[1] == ':' && filename[2] == '\\')
&& filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/'))
return TRUE;
/* Both \xxx and \\xxx\yyy are absolute. */