[med-svn] [orthanc] 02/07: explicit generation of the en_US locale

Sebastien Jodogne jodogne-guest at moszumanska.debian.org
Thu Jul 20 10:28:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

jodogne-guest pushed a commit to branch master
in repository orthanc.

commit 07ab12953518ef97a1eb9c20e5059ec22e309031
Author: jodogne-guest <s.jodogne at gmail.com>
Date:   Thu Jul 20 09:54:01 2017 +0200

    explicit generation of the en_US locale
---
 debian/control  | 1 +
 debian/postinst | 6 ++++++
 debian/rules    | 6 ++++++
 3 files changed, 13 insertions(+)

diff --git a/debian/control b/debian/control
index 4b91e0e..9572675 100644
--- a/debian/control
+++ b/debian/control
@@ -34,6 +34,7 @@ Package: orthanc
 Architecture: any
 Depends: adduser,
          dcmtk,
+         locales,
 	 lsb-base,
          ${misc:Depends},
          ${shlibs:Depends}
diff --git a/debian/postinst b/debian/postinst
index d88b84b..7dab01b 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -28,6 +28,12 @@ case $1 in
         chmod 0664 /etc/orthanc/serve-folders.json
 	chmod 0775 /var/lib/orthanc
 
+        # Make sure the en_US locale has been generated (required for
+        # case-insensitive comparison of strings with accents)
+	locale-gen en_US
+	locale-gen en_US.UTF-8
+	update-locale
+
 	# Start the Orthanc service after installation
         # https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
 	if [ -x /etc/init.d/orthanc ]; then
diff --git a/debian/rules b/debian/rules
index d2e3276..37c7fdd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -59,6 +59,12 @@ override_dh_auto_build:
 	ln -s /usr/share/javascript/jquery/jquery.min.js Build/OrthancPluginDocumentation/doc/jquery.js
 
 override_dh_auto_test:
+        # Install the en_US locale (required for case-insensitive
+        # comparison of strings with accents)
+	locale-gen en_US
+	locale-gen en_US.UTF-8
+	update-locale
+
 	( cd Build; ./UnitTests )
 
 override_dh_clean:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/orthanc.git



More information about the debian-med-commit mailing list