yaz_is_abspath: drive letter test NOT using isalpha
[yaz-moved-to-github.git] / src / tpath.c
index 900552e..b802c98 100644 (file)
@@ -129,7 +129,8 @@ int yaz_is_abspath(const char *p)
 #ifdef WIN32
     if (*p == '\\')
         return 1;
-    if (*p && p[1] == ':' && isalpha(*p))
+    if (*p && p[1] == ':' && 
+        ((*p >= 'A' && *p <= 'Z') || (*p >= 'a' && *p <= 'z')))
         return 1;
 #endif
     return 0;