Ticket #5405: boost_filesystem.patch

File boost_filesystem.patch, 1.2 KB (added by michael.kaes@…, 12 years ago)

Patch for the described issue

Line 
1diff -crB /cygdrive/d/programs/boost_1_46_1/libs/filesystem/v3/src/path.cpp /cygdrive/d/programs/boost_1_46_1_orig/libs/filesystem/v3/src/path.cpp
2*** /cygdrive/d/programs/boost_1_46_1/libs/filesystem/v3/src/path.cpp 2011-03-31 11:05:13.829400000 +0200
3--- /cygdrive/d/programs/boost_1_46_1_orig/libs/filesystem/v3/src/path.cpp 2011-03-03 19:00:21.615249000 +0100
4***************
5*** 84,90 ****
6 const wchar_t* preferred_separator_string = L"\\";
7 const wchar_t colon = L':';
8 const wchar_t dot = L'.';
9- const wchar_t questionmark = L'?';
10 const fs::path dot_path(L".");
11 const fs::path dot_dot_path(L"..");
12
13--- 84,89 ----
14***************
15*** 491,509 ****
16 && is_separator(path[0])
17 && is_separator(path[1])) return string_type::npos;
18
19- # ifdef BOOST_WINDOWS_API
20- // case "\\?\"
21- if (size > 4
22- && is_separator(path[0])
23- && is_separator(path[1])
24- && path[2] == questionmark
25- && is_separator(path[3]))
26- {
27- string_type::size_type pos(path.find_first_of(separators, 4));
28- return pos < size ? pos : string_type::npos;
29- }
30- # endif
31-
32 // case "//net {/}"
33 if (size > 3
34 && is_separator(path[0])
35--- 490,495 ----