Convert paths to strings explicitly (#400)

On Windows std::filesystem::path holds wchar_t, so assigning a path
component to a std::string or passing path::c_str() to fopen does not
compile. Use path::string() at those sites, and drop a redundant path
round trip in NumpyFile.

closes #399
This commit is contained in:
Erik Fröjdh authored and GitHub committed 2026-10-05 19:13:44 +02:00
1 parent 4ac941a003
commit 3e90eb2539
5 files changed
+7 -8

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ void JungfrauDataFile::find_frame_size(const std::filesystem::path &fname) {
void JungfrauDataFile::parse_fname(const std::filesystem::path &fname) {
m_path = fname.parent_path();
m_base_name = fname.stem();
m_base_name = fname.stem().string();
// find file index, then remove if from the base name
if (auto pos = m_base_name.find_last_of('_'); pos != std::string::npos) {