Your message dated Sat, 01 Jun 2024 21:35:59 +0000
with message-id <e1sdwon-00hpe8...@fasolo.debian.org>
and subject line Bug#1071084: fixed in glibc 2.38-12
has caused the Debian Bug report #1071084,
regarding locales: update-locale hides error information when invoking 'locale 
charmap'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1071084: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071084
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: locales
Version: 2.38-10
Severity: normal
Tags: newcomer, patch



The perl script update-local internally invokes 'locale charmap' to perform 
additional checks.

However if this call fails for some reason, update-locale always only prints 
"Error: invalid locale settings: LANG=...." which can be very misleading when 
the root-cause is actually different.


I.e. sample output of "sudo /usr/sbin/update-locale LANG=de_AT.UTF-8" on Debian 
Trixie:

----
*** update-locale: Error: invalid locale settings:  LANG=de_AT.UTF-8
----


After applying the following patch:

==========
--- /usr/update-locale  2024-05-13 23:42:46.584127893 +0200
+++ /usr/sbin/update-locale     2024-05-13 23:40:25.160121142 +0200
@@ -88,7 +88,7 @@
 {
        #  Check that this locale does exist
        my $charset = `LANG= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= 
LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= 
LC_MEASUREMENT= LC_IDENTIFICATION= LC_ALL= $env locale charmap 2>&1`;
-       die "*** $progname: Error: invalid locale settings: $env\n"
+       die "*** $progname: Error: invalid locale settings: 
$env\n\n----------$charset----------\n"
                if ($charset =~ m/Cannot set/);
        #  If LANGUAGE is set, its first value must be compatible with 
LC_MESSAGES
        if (defined $arg{LANGUAGE})
==========


The output contains the actual information why the call to "locale chaarmap" 
failed, thus making it possible to investigate why the call actually failed:

=======
*** update-locale: Error: invalid locale settings:  LANG=de_AT.UTF-8

----------locale: Cannot set LC_CTYPE to default locale: No such file or 
directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968
----------
=======



-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-2-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set 
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages locales depends on:
ii  debconf [debconf-2.0]  1.5.86
ii  libc-bin               2.38-10
ii  libc-l10n              2.38-10

locales recommends no packages.

locales suggests no packages.

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "de_AT.UTF-8",
        LC_MONETARY = "de_AT.UTF-8",
        LC_CTYPE = "C.UTF-8",
        LC_ADDRESS = "de_AT.UTF-8",
        LC_TELEPHONE = "de_AT.UTF-8",
        LC_NAME = "de_AT.UTF-8",
        LC_MEASUREMENT = "de_AT.UTF-8",
        LC_IDENTIFICATION = "de_AT.UTF-8",
        LC_NUMERIC = "de_AT.UTF-8",
        LC_PAPER = "de_AT.UTF-8",
        LANG = "de_AT.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
  locales/locales_to_be_generated:
  locales/default_environment_locale: None

--- End Message ---
--- Begin Message ---
Source: glibc
Source-Version: 2.38-12
Done: Aurelien Jarno <aure...@debian.org>

We believe that the bug you reported is fixed in the latest version of
glibc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1071...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aure...@debian.org> (supplier of updated glibc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 01 Jun 2024 23:16:35 +0200
Source: glibc
Architecture: source
Version: 2.38-12
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Aurelien Jarno <aure...@debian.org>
Closes: 1071084 1071462 1071549
Changes:
 glibc (2.38-12) unstable; urgency=medium
 .
   [ Aurelien Jarno ]
   * debian/debhelper.in/libc.postinst: do not try to call telinit if it is
     provided by systemd, it is just broken.  Closes: #1071462.
   * debian/debhelper.in/libc.postinst: test for $DPKG_ROOT first.
   * debian/debhelper.in/libc.postinst: emit libc-upgrade trigger on every
     upgrade and libc-major-upgrade on major glibc upgrade. This interface
     should be used by depending packages to restart themselves if needed.
   * debian/patches/git-updates.diff: update from upstream stable branch.
 .
   [ Dominik Stadler ]
   * debian/local/usr_sbin/update-locale: improve error reporting in
    update-locale.  Closes: #1071084.
 .
   [ Bjarni Ingi Gislason ]
   * debian/local/manpages/gencat.1: editorial fixes.  Closes: #1071549.
Checksums-Sha1:
 5def9ed3cfdfbf2e07169862359f54dff28c0543 7535 glibc_2.38-12.dsc
 26bdaf1d7439918840b3775ce251fe7df33b6cf7 430016 glibc_2.38-12.debian.tar.xz
 ee9172871cf8893b723e8c6eb7dc5324d5ab7649 9640 glibc_2.38-12_source.buildinfo
Checksums-Sha256:
 aa358979f631aabf67f73c7020263f9f2e9d11ba764afa9b7765a92d03cf8f19 7535 
glibc_2.38-12.dsc
 616fd5691b00e766ea6a9b3d8c3ba9a9b193e49709533aa6b85387dcfafa2a51 430016 
glibc_2.38-12.debian.tar.xz
 2435d0982e90cb5bef8ca2485c558751d7c7773b95851f56601e11b6bf7f4d2c 9640 
glibc_2.38-12_source.buildinfo
Files:
 423520d04d33254afd509dd3a85ee876 7535 libs required glibc_2.38-12.dsc
 5c7132746817fac20278eca920011081 430016 libs required 
glibc_2.38-12.debian.tar.xz
 d6afccc6dcfbc275b2eb0ef697092664 9640 libs required 
glibc_2.38-12_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAmZbkBcACgkQE4jA+Jno
M2sLBw/9Fr7xE7VfnlF8ypIxvlIhu6R5dWIYQRA1IdzjTDfdBM+TdN0AHzvrk1Mw
trW0dFfRBDNsTr2FkN3/JSL4vG3PeTUWmCnPlTsJy/IfrQEj8vpinOhHQ6qUDc8t
lyAxLY0rLb7xJZHuDLYJAki8CnS5B11INDc+BBPHCjrCIJcbgf4xq5UXV0p0k3sO
la/9CcpkTznuAs+K9zKh4Xoszz9LRLy8uhb/r4ieI8oXIIaZRTMGOVCjEhrvz8QY
lAsHsikW6fyExw933oCDiCO+rHOBx0LfGJmTBF6xJoZdJr4vBV52rMAscROR4R3C
Cum0H/k+YoiH/Nho0tKRPtGZqol/JLdZHn87tKR3ODdDrOv+poGn50MeItz4SESD
wL+qU2+XygWLTqF3bXFGR28WrEpYSqTLQxmTdEvCVETcf8t/DRBI4FVqSDDW0YmQ
L2OUKXpo5iK/OmEM8IcJZv1ObGV8+l/LT4ualeh5BCmZRS4bCTs6iHeRR1WamZdz
2MuVYXqh+Cur/pgVuO2gFXvzDWVubrHZQyDhqeGlPyi9Mit9l/Xt3nmMFESPdYUJ
dhikJAZB9M71siiP75FYfyWd33bqJK82GkvldTnFwWmHpxKQRKVJdi2fzlVSKA32
yIQ2/RcyL2gwZCH7oE/PWkvGfehrxx56QnDXSocKcn4kuIW1BCs=
=6BzU
-----END PGP SIGNATURE-----

Attachment: pgpNHXTAvXwDr.pgp
Description: PGP signature


--- End Message ---

Reply via email to