File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,19 +20,15 @@ namespace fs = std::filesystem;
2020
2121TEST (Reader, StreamWithManifest)
2222{
23- fs::path current_dir = fs::path (__FILE__).parent_path ();
23+ fs::path current_dir = fs::u8path (__FILE__).parent_path ();
2424 std::cout << " Current directory: " << current_dir << std::endl;
2525// fs::path test_file = current_dir / "../tests/fixtures/CÖÄ_.jpg";
2626 fs::path test_file = current_dir.parent_path ().append (" tests" ).append (" fixtures" ).append (" CÖÄ_.jpg" );
2727
2828 std::cout << " Test file path: " << test_file << std::endl;
2929
30- for (const auto & entry : fs::directory_iterator (test_file.parent_path () )) {
31- std::cout << entry.path ().native () << std::endl;
32- }
33-
3430 // read the new manifest and display the JSON
35- std::ifstream file_stream (test_file. native () , std::ios::binary);
31+ std::ifstream file_stream (test_file, std::ios::binary);
3632 ASSERT_TRUE (file_stream.is_open ()) << " Failed to open file: " << test_file;
3733
3834 auto reader = c2pa::Reader (" image/jpeg" , file_stream);
You can’t perform that action at this time.
0 commit comments