Bug#1039043: update-info-dir does not honor system locale
Package: install-info
Version: 6.8-6+b1
Because update-info-dir unsets (and unexports) LANGUAGE and LANG settings and only sets a shell variable by importing /etc/default/locale, locale is not set. There's two major things that seem to be an issue
1. export them.
2. also handle LC_ALL (and other LC_ variables) which tends to overrride LANGUAGE/LANG variables.
Suggested change:
commit dd6e2970da0a3c675889da8c93feaab7aaca741a
Author: Junichi Uekawa <dancer@debian.org>
Date: Sun Jun 25 08:33:19 2023 +0900
Export locale variables so that they actually take effect.
diff --git a/hoge/update-info/update-info-dir b/hoge/update-info/update-info-dir
index 2856647a..d4bffd36 100755
--- a/hoge/update-info/update-info-dir
+++ b/hoge/update-info/update-info-dir
@@ -15,12 +15,16 @@ set -e
# the system wide settings. See bug #536476
unset LANGUAGE
unset LANG
+unset LC_ALL
if [ -r /etc/environment ] ; then
. /etc/environment
fi
if [ -r /etc/default/locale ] ; then
. /etc/default/locale
fi
+export LANGUAGE
+export LANG
+export LC_ALL
Help ()
{
Reply to: