[filesystem] windows bug

On a windows system, doing this: path::default_name_check( &windows_name); path p( "c:/temp/test"); Throws an exception. However, having: path::default_name_check( &native); path p( "c:/temp/test"); works. I think there is a bug in path_posix_windows.cpp, line 241: if ( (checker == no_check || checker == native) && src.size() >= 2 ) I guess it should be something like: if ( (checker == no_check || checker == native || check == windows_name) && src.size() >= 2 ) Best, John

At 01:59 AM 3/13/2004, John Torjo wrote:
On a windows system, doing this:
path::default_name_check( &windows_name); path p( "c:/temp/test");
Throws an exception.
However, having: path::default_name_check( &native); path p( "c:/temp/test");
works.
I think there is a bug in path_posix_windows.cpp, line 241: if ( (checker == no_check || checker == native) && src.size() >= 2
)
I guess it should be something like: if ( (checker == no_check || checker == native || check == windows_name) && src.size() >= 2 )
It will be a few more days before I get a chance to look at this but it isn't forgotten. --Beman
participants (2)
-
Beman Dawes
-
John Torjo