# HG changeset patch # User Sebastien Jodogne # Date 1503431676 -7200 # Node ID 38aa615b7667393ed45dd11a0a47ea8da1940654 # Parent bd5597966b3d93727d72b4653508be0a09e5ea5f fix diff -r bd5597966b3d -r 38aa615b7667 CMakeLists.txt --- a/CMakeLists.txt Tue Aug 22 21:46:50 2017 +0200 +++ b/CMakeLists.txt Tue Aug 22 21:54:36 2017 +0200 @@ -42,6 +42,7 @@ set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/Orthanc) set(ORTHANC_DISABLE_PATCH ON) # No need for the "patch" command-line tool +set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) include(CheckIncludeFiles) include(CheckIncludeFileCXX) include(CheckLibraryExists) @@ -91,6 +92,7 @@ ) add_definitions( + -DORTHANC_ENABLE_LOCALE=0 -DORTHANC_ENABLE_PUGIXML=0 -DORTHANC_SQLITE_STANDALONE=1 ) diff -r bd5597966b3d -r 38aa615b7667 Orthanc/Core/Toolbox.cpp --- a/Orthanc/Core/Toolbox.cpp Tue Aug 22 21:46:50 2017 +0200 +++ b/Orthanc/Core/Toolbox.cpp Tue Aug 22 21:54:36 2017 +0200 @@ -1326,7 +1326,6 @@ { globalLocale_.reset(); } -#endif std::string Toolbox::ToUpperCaseWithAccents(const std::string& source) @@ -1368,4 +1367,5 @@ w = boost::algorithm::to_upper_copy(w, *globalLocale_); return boost::locale::conv::utf_to_utf(w); } +#endif } diff -r bd5597966b3d -r 38aa615b7667 Orthanc/Core/Toolbox.h --- a/Orthanc/Core/Toolbox.h Tue Aug 22 21:46:50 2017 +0200 +++ b/Orthanc/Core/Toolbox.h Tue Aug 22 21:54:36 2017 +0200 @@ -209,8 +209,8 @@ void InitializeGlobalLocale(const char* locale); void FinalizeGlobalLocale(); -#endif std::string ToUpperCaseWithAccents(const std::string& source); +#endif } }