# HG changeset patch # User Sebastien Jodogne # Date 1773733401 -3600 # Node ID 241f2169c02969fc1fa57bfe0d03298c1457da28 # Parent 91f2ac41660158b2a9f711c2f54e003d4c86030e added warning about utf8 and system-wide libminizip diff -r 91f2ac416601 -r 241f2169c029 OrthancFramework/Sources/Compression/ZipWriter.cpp --- a/OrthancFramework/Sources/Compression/ZipWriter.cpp Mon Mar 16 18:38:07 2026 +0100 +++ b/OrthancFramework/Sources/Compression/ZipWriter.cpp Tue Mar 17 08:43:21 2026 +0100 @@ -596,6 +596,21 @@ } } + + void ZipWriter::SetAllowUtf8(bool allowUtf8) + { + allowUtf8_ = allowUtf8; + +#if ORTHANC_USE_SYSTEM_MINIZIP == 1 + if (allowUtf8_) + { + LOG(WARNING) << "UTF-8 paths requested in ZIP file, but Orthanc is linked against " + << "the system-wide minizip library, which may not support this feature"; + } +#endif + } + + void ZipWriter::SetCompressionLevel(uint8_t level) { if (level >= 10) diff -r 91f2ac416601 -r 241f2169c029 OrthancFramework/Sources/Compression/ZipWriter.h --- a/OrthancFramework/Sources/Compression/ZipWriter.h Mon Mar 16 18:38:07 2026 +0100 +++ b/OrthancFramework/Sources/Compression/ZipWriter.h Tue Mar 17 08:43:21 2026 +0100 @@ -154,13 +154,13 @@ * The behavior of Orthanc <= 1.12.10 corresponds to * "SetAllowUtf8(false)". * + * Note that if linking against the system-wide version of minizip, + * there is no way to check that its version is above 1.3.2. + * * https://zlib.net/ChangeLog.txt * https://discourse.orthanc-server.org/t/seriesdescription-characters-and-removed-during-oe2-zip-export/6397 **/ - void SetAllowUtf8(bool allowUtf8) - { - allowUtf8_ = allowUtf8; - } + void SetAllowUtf8(bool allowUtf8); bool IsAllowUtf8() const {