com php-src: do compare on wchar's: win32/ioutil.c

[email protected] (Anatol Belski)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    80d5c23c0d150ac480e72e931f74035240dd9ba1
Author:    Anatol Belski <[email protected]>         Fri, 31 Mar 2017 20:18:58 +0200
Parents:   19a692b7d2ffd603224e3e27d982abc536d3cb87
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=80d5c23c0d150ac480e72e931f74035240dd9ba1

Log:
do compare on wchar's

Changed paths:
  M  win32/ioutil.c


Diff:
diff --git a/win32/ioutil.c b/win32/ioutil.c
index 6fb89c4..9c0601a 100644
--- a/win32/ioutil.c
+++ b/win32/ioutil.c
@@ -453,7 +453,7 @@ PW32IO size_t php_win32_ioutil_dirname(char *path, size_t len)
 
 	endw = pathw + pathw_len - 1;
 
-	if ((2 <= len) && isalpha((int)((unsigned char *)path)[0]) && (':' == path[1])) {
+	if ((2 <= pathw_len) && iswalpha((wint_t)(pathw)[0]) && (L':' == pathw[1])) {
 		pathw += 2;
 		path += 2;
 		len_adjust += 2;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.