changeset 6594:338a3ba0baf4

Fix issue #255: /tools/reset fails to restart server with error 'Internal error: Cannot initialize ICU: U_INVALID_FORMAT_ERROR'
author Alain Mazy <am@orthanc.team>
date Thu, 19 Feb 2026 18:03:45 +0100
parents e0540311207e
children c23bb535bade
files NEWS OrthancFramework/Sources/Toolbox.cpp
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Feb 19 18:01:32 2026 +0100
+++ b/NEWS	Thu Feb 19 18:03:45 2026 +0100
@@ -43,6 +43,8 @@
   "1234", "_1234" and "%1234" as the same PatientID.
 * libcurl: Enabling IPv6 if linking statically
   https://github.com/orthanc-server/orthanc-builder/issues/33
+* Fix /tools/reset fails to restart server with error "Internal error: Cannot initialize ICU: U_INVALID_FORMAT_ERROR"
+  https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=255
 * Upgraded dependencies for static builds:
   - boost 1.89.0
   - dcmtk 3.7.0
--- a/OrthancFramework/Sources/Toolbox.cpp	Thu Feb 19 18:01:32 2026 +0100
+++ b/OrthancFramework/Sources/Toolbox.cpp	Thu Feb 19 18:03:45 2026 +0100
@@ -2059,6 +2059,9 @@
 
 #if (ORTHANC_ENABLE_ICU == 1)
     u_cleanup();
+#  if ORTHANC_STATIC_ICU == 1
+    globalIcuData_.clear();
+#  endif
 #endif
   }