From: Jason Rumney Date: Sat, 25 Nov 2006 00:32:40 +0000 (+0000) Subject: (file_name_absolute_p) [WINDOWSNT]: Use isalpha(). X-Git-Tag: emacs-pretest-22.0.92~521 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5f7a4874864fd6db81383554dabda16bc58fe899;p=emacs.git (file_name_absolute_p) [WINDOWSNT]: Use isalpha(). --- diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 5e8b563984d..6970c1ab9a4 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -451,7 +451,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])) + if (isalpha (filename[0]) && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/')) return TRUE;