# HG changeset patch # User Alain Mazy # Date 1756404855 -7200 # Node ID 9ff90f4a5fd0db97430d807d54ca7d282347d05d # Parent 22ddac5de96ebd2a4a4d13d44934c2c2f3e12551 fix diff -r 22ddac5de96e -r 9ff90f4a5fd0 OrthancFramework/Sources/SystemToolbox.cpp --- a/OrthancFramework/Sources/SystemToolbox.cpp Thu Aug 28 19:09:53 2025 +0200 +++ b/OrthancFramework/Sources/SystemToolbox.cpp Thu Aug 28 20:14:15 2025 +0200 @@ -338,7 +338,7 @@ const std::string& path, bool callFsync) { - WriteFile(content, size, path, callFsync); + WriteFile(content, size, boost::filesystem::path(path), callFsync); } void SystemToolbox::WriteFile(const void *content, @@ -716,7 +716,7 @@ bool SystemToolbox::IsRegularFile(const std::string& path) { - return SystemToolbox::IsRegularFile(path); + return IsRegularFile(boost::filesystem::path(path)); } diff -r 22ddac5de96e -r 9ff90f4a5fd0 OrthancFramework/Sources/SystemToolbox.h --- a/OrthancFramework/Sources/SystemToolbox.h Thu Aug 28 19:09:53 2025 +0200 +++ b/OrthancFramework/Sources/SystemToolbox.h Thu Aug 28 20:14:15 2025 +0200 @@ -73,10 +73,10 @@ const std::string& path, bool callFsync); - static void WriteFile(const void *content, - size_t size, - const boost::filesystem::path &path, - bool callFsync); // this variant is mandatory to handle non ASCII-only path on Windows + static void WriteFile(const void *content, + size_t size, + const boost::filesystem::path &path, + bool callFsync); // this variant is mandatory to handle non ASCII-only path on Windows static void WriteFile(const void* content, size_t size, diff -r 22ddac5de96e -r 9ff90f4a5fd0 OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Thu Aug 28 19:09:53 2025 +0200 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Thu Aug 28 20:14:15 2025 +0200 @@ -5233,7 +5233,7 @@ { const _OrthancPluginWriteFile& p = *reinterpret_cast(parameters); - SystemToolbox::WriteFile(p.data, p.size, p.path, true /* run fsync() */); + SystemToolbox::WriteFile(p.data, p.size, boost::filesystem::path(p.path), true /* run fsync() */); return true; }