Package: locales
Version: 2.36-9+deb12u4
Severity: important
Tags: l10n
X-Debbugs-Cc: maddes+deb...@maddes.net
Dear Maintainer,
referencing a custom locale that resides in /usr/local/share/i18n/loaces/ via
"copy" doesn't work.
`dpkg-reconfigure locales` gives the following error message:
en_GB.
This bug still exits in Debian 12 "Bookworm"
File: /var/lib/dpkg/info/locales.config
Line: 371
The logic has to be inverted to work as intended.
Please fix
Matthias Bücher
diff --git a/debian/local/usr_sbin/locale-gen b/debian/local/usr_sbin/locale-gen
index 7fa3d772..1711a4f0 100755
--- a/debian/local/usr_sbin/locale-gen
+++ b/debian/local/usr_sbin/locale-gen
@@ -23,6 +23,12 @@ is_entry_ok() {
fi
}
+if [ -z "${I18NPATH:-}" ]; then
+ if [ -d "${USER_LOCA
Adding / back to end of the path, so that a locale file is immediately
found.
diff --git a/debian/local/usr_sbin/locale-gen b/debian/local/usr_sbin/locale-gen
index 7fa3d772..1711a4f0 100755
--- a/debian/local/usr_sbin/locale-gen
+++ b/debian/local/usr_sbin/locale-gen
@@ -23,6 +23,12 @@ is_entry_o
Unfortunately enhancing `locale-gen` doesn't work during an package
update via apt:
...
Setting up locales (2.36-9+deb12u4) ...
Generating locales (this might take a while)...
en_US.UTF-8... done
en_DE.UTF-8@INTL...[error] cannot open locale definition file
`en_US@INTL': No such file or dir
Here's a working and POSIX compatible patch for locales.config.
Kind regards
Matthias
diff --git a/debian/debhelper.in/locales.config
b/debian/debhelper.in/locales.config
index b9620bf7..21f96d3d 100644
--- a/debian/debhelper.in/locales.config
+++ b/debian/debhelper.in/locales.config
@@ -51,7 +5
Sorry, that was nonsense (assuming I was too tired), of course my local
patch is overwritten by a package update.
On Fri, 15 Mar 2024 18:54:42 +0100 "M. Buecher"
wrote:
> Unfortunately enhancing `locale-gen` doesn't work during an package
> update via apt:
>
> ...
On 2024-04-09 23:49, Aurelien Jarno wrote:
Hi,
On 2024-03-15 16:13, M. Buecher wrote:
Adding / back to end of the path, so that a locale file is immediately
found.
diff --git a/debian/local/usr_sbin/locale-gen b/debian/local/usr_sbin/locale-gen
index 7fa3d772..1711a4f0 100755
--- a/debian
8 matches
Mail list logo