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:
parent
4fdda8b8d9
commit
2384cbd3f2
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue