diff --git a/CMakeLists.txt b/CMakeLists.txt index 39e9e7b..3e92dcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,3 +19,6 @@ cm_example_project(GetCpuInfo) add_executable(CollectionTest CollectionTest.cpp) cm_example_project(CollectionTest) + +add_executable(FixFilenameTest FixFilenameTest.cpp) +cm_example_project(FixFilenameTest) \ No newline at end of file diff --git a/FixFilenameTest.cpp b/FixFilenameTest.cpp new file mode 100644 index 0000000..9b4ed85 --- /dev/null +++ b/FixFilenameTest.cpp @@ -0,0 +1,16 @@ +#include +#include + +using namespace std; +using namespace hgl; +using namespace hgl::filesystem; + +void main() +{ + constexpr os_char incorrect_filename[]=OS_TEXT("c:/win95\\\\ms-dos"); + + os_out<