Skip to content

Commit 134f1d2

Browse files
마누엘Git for Windows Build Agent
마누엘
authored and
Git for Windows Build Agent
committed
Fixed path converting with non ascii char.
When a non ascii char is at the beginning of a path the current conversion destroys the path. This fix will prevent this with an extra check for non-ascii UTF-8 characters. Helped-by: Johannes Schindelin <[email protected]> Signed-off-by: 마누엘 <[email protected]>
1 parent 8735d48 commit 134f1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

winsup/cygwin/msys2_path_conv.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en
390390
}
391391
it = *src;
392392

393-
while (!isalnum(*it) && *it != '/' && *it != '\\' && *it != ':' && *it != '-' && *it != '.') {
393+
while (!isalnum(*it) && !(0x80 & *it) && *it != '/' && *it != '\\' && *it != ':' && *it != '-' && *it != '.') {
394394
recurse = true;
395395
it = ++*src;
396396
if (it == end || *it == '\0') return NONE;

0 commit comments

Comments
 (0)