# HG changeset patch # User Alain Mazy # Date 1793804689 -3600 # Node ID 6331d240a7fcf2dd60f6ebafeb8b4e2f6dffe398 # Parent abb0321e1aebac85f51090eb3cfb1307f6dc2597 Make Orthanc more resilient on SpecificCharacterSet typo errors diff -r abb0321e1aeb -r 6331d240a7fc NEWS --- a/NEWS Wed Nov 04 15:39:25 2026 +0100 +++ b/NEWS Wed Nov 04 16:04:49 2026 +0100 @@ -47,6 +47,7 @@ (https://discourse.orthanc-server.org/t/1-13-0-orthancpluginloaddicominstance-reads-the-whole-dicom-file-in-emptypixeldata-and-untilpixeldata-modes/6489) * Fix uncompressed size in Prometheus metrics (https://discourse.orthanc-server.org/t/fixing-prometheus-metrics-contribution/6490) +* Make Orthanc more resilient on SpecificCharacterSet typo errors ('ISO-IR' vs 'ISO IR' vs 'ISO_IR' that is the valid prefix) * Fix use of the static runtime under Visual Studio (/MT), which broke in 1.12.10 * New CMake options: - "THIRD_PARTY_DOWNLOADS_ROOT_URL" to specify another webserver to downloads the third-parties from. diff -r abb0321e1aeb -r 6331d240a7fc OrthancFramework/Sources/Enumerations.cpp --- a/OrthancFramework/Sources/Enumerations.cpp Wed Nov 04 15:39:25 2026 +0100 +++ b/OrthancFramework/Sources/Enumerations.cpp Wed Nov 04 16:04:49 2026 +0100 @@ -2018,6 +2018,8 @@ Toolbox::ToUpperCase(s); // handle common spelling mistakes + boost::replace_all(s, "ISO-IR ", "ISO_IR "); + boost::replace_all(s, "ISO IR ", "ISO_IR "); boost::replace_all(s, "ISO_IR_", "ISO_IR "); boost::replace_all(s, "ISO_2022_IR_", "ISO 2022 IR ");