Skip to content

Commit 328b072

Browse files
author
Dylan Ross
committed
chore(sdk): test using utf8 chars
1 parent 9b79d77 commit 328b072

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tests/reader.test.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,15 @@ namespace fs = std::filesystem;
2020

2121
TEST(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);

0 commit comments

Comments
 (0)