[med-svn] [Git][med-team/orthanc][master] 2 commits: Fix generation of mandatory locale en_US.UTF-8 on Debian

Sebastien Jodogne (@jodogne-guest) gitlab at salsa.debian.org
Sat Dec 18 10:59:18 GMT 2021



Sebastien Jodogne pushed to branch master at Debian Med / orthanc


Commits:
7383c457 by jodogne-guest at 2021-12-18T11:35:56+01:00
Fix generation of mandatory locale en_US.UTF-8 on Debian

- - - - -
9d38e81d by jodogne-guest at 2021-12-18T11:58:19+01:00
Upload to unstable

- - - - -


2 changed files:

- debian/changelog
- debian/postinst


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+orthanc (1.9.7+dfsg-5) unstable; urgency=medium
+
+  * Fix generation of mandatory locale en_US.UTF-8 on Debian
+
+ -- Sebastien Jodogne <s.jodogne at gmail.com>  Sat, 18 Dec 2021 11:30:49 +0100
+
 orthanc (1.9.7+dfsg-4) unstable; urgency=medium
 
   [ Steve Langasek ]


=====================================
debian/postinst
=====================================
@@ -32,10 +32,13 @@ case $1 in
         chown root:orthanc /etc/orthanc/credentials.json
         chmod 0640 /etc/orthanc/credentials.json
 
-        # 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
+        # Make sure the en_US.UTF-8 locale has been generated
+        # (required for case-insensitive comparison of strings with
+        # accents).  Note that the call "locale-gen en_US.UTF-8" that
+        # was used in versions <= 1.9.7+dfsg-4 of this package only
+        # worked on Ubuntu.
+	sed -i 's/^# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen
+	locale-gen
 	update-locale
 
 	# Start the Orthanc service after installation



View it on GitLab: https://salsa.debian.org/med-team/orthanc/-/compare/9bfff8369e7fe5ac4b8103ff69b9622ef296f706...9d38e81d1f68c7b770bb081cfae70a2e356a9e19

-- 
View it on GitLab: https://salsa.debian.org/med-team/orthanc/-/compare/9bfff8369e7fe5ac4b8103ff69b9622ef296f706...9d38e81d1f68c7b770bb081cfae70a2e356a9e19
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211218/0d699c39/attachment-0001.htm>


More information about the debian-med-commit mailing list