1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

Bug 233511, support windows UNC paths

This commit is contained in:
Mike Kucera 2008-05-26 16:56:23 +00:00
parent 4fdda8b8d9
commit 2384cbd3f2

View file

@ -45,6 +45,14 @@ public class ScannerUtility {
char[] aus = new char[len + 1];
originalPath.getChars(0, len, ein, 0);
// allow double backslash at beginning for windows UNC paths, bug 233511
if(ein.length >= 2 && ein[0] == BSLASH && ein[1] == BSLASH &&
File.separatorChar == BSLASH) {
aus[j++] = BSLASH;
}
for (int i=0; i<len; i++) {
char c = ein[i];
switch (c) {