[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1026798: marked as done (Listchanges does not display proper locales anymore)



Your message dated Mon, 25 Sep 2023 06:47:45 -0400
with message-id <b045ba99-6c7e-4393-8e55-118ecc5f1c0b@kamens.us>
and subject line Re: Bug#1026798: Acknowledgement (Listchanges does not display proper locales anymore)
has caused the Debian Bug report #1026798,
regarding Listchanges does not display proper locales anymore
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 owner@bugs.debian.org
immediately.)


-- 
1026798: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026798
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt-listchanges
Version: 3.24
Severity: important

The current version of listchanges does not display changes correctly.
For example:
   --- <C3><84>nderungen f<C3><BC>r base-files ---
   base-files (12.3) unstable; urgency=high
   ...
   --- <C3><84>nderungen f<C3><BC>r exim4 (exim4-config exim4-base exim4-daemon-light eximon4) ---
   exim4 (4.96-10) unstable; urgency=medium
   ...

Please revert to use the proper locale of the terminal. This could also
be a security issue if less is not configured (as in my case) to display
this invalid UTF-something codes correctly.

Please note, my locale is not as reportbug shows down there UTF-8, it is
latin1 de_DE but reportbug has a long time bug that needs to be called
with all locales purged (so even that would be no UTF-8 as failed noted
by reportbug!)

-- Package-specific info:
==> /etc/apt/listchanges.conf <==
[apt]
frontend=pager
email_address=root
confirm=0
save_seen=/var/lib/apt/listchanges.db
which=both
no_network=false
email_format=text
headers=true
reverse=true


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (400, 'unstable'), (1, 'experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.17 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apt-listchanges depends on:
ii  apt                    2.5.4devuan1
ii  debconf [debconf-2.0]  1.5.80
ii  python3                3.10.6-3
ii  python3-apt            2.5.0
ii  python3-debconf        1.5.80
ii  sensible-utils         0.0.17
ii  ucf                    3.0043

apt-listchanges recommends no packages.

Versions of packages apt-listchanges suggests:
ii  eterm [x-terminal-emulator]                0.9.6-6.1
ii  exim4-daemon-light [mail-transport-agent]  4.96-9
ii  firefox [www-browser]                      108.0-2
ii  luakit [www-browser]                       1:2.3.3-1
ii  python3-gi                                 3.42.2-3
ii  rxvt-unicode [x-terminal-emulator]         9.30-2+b3
ii  w3m [www-browser]                          0.5.3+git20220429-1+b1
ii  xterm [x-terminal-emulator]                377-1

-- debconf information:
* apt-listchanges/headers: true
* apt-listchanges/reverse: true
* apt-listchanges/email-address: root
* apt-listchanges/frontend: pager
* apt-listchanges/save-seen: true
* apt-listchanges/email-format: text
* apt-listchanges/which: both
* apt-listchanges/no-network: false
* apt-listchanges/confirm: false

-- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---

Control: tags 1026798 wontfix

apt-listchanges's behavior is correct and will not be changed.

You have LC_ALL set to C, which overrides LANG and forces the pager that apt-listchanges uses, i.e., less, to use the C locale, which does not, and is not expected to, display non-ASCII characters properly. See https://www.gnu.org/software/libc/manual/html_node/Choosing-Locale.html , in particular, "In order to force the system to always use the default locale, the user can set the LC_ALL environment variable to ‘C’." See also the lengthy explanation of this at https://unix.stackexchange.com/a/87763 .

To confirm that this is not apt-listchanges's fault, you can redirect the output of apt-listchanges into a file and then display that file with less, and you will see the same behavior.

Some applications allow LANG or LANGUAGE to override LC_ALL; those applications are arguably behaving incorrectly. At best you could say that the correct behavior when LANG/LANGUAGE conflicts with LC_ALL is debatable and either behavior is correct. The right way to avoid this issue is not to set LC_ALL=C.

Jonathan Kamens

On Wed, 21 Dec 2022 12:00:22 +0100 Klaus Ethgen <Klaus@ethgen.de> wrote:

> By the way, this seems to be also/a a bug of dpkg or the like.
>
> Event that my locales are right set:
> ~> locale
> LANG=de_DE
> LANGUAGE=de_DE:de:en
> LC_CTYPE="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_COLLATE="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_PAPER="C"
> LC_NAME="C"
> LC_ADDRESS="C"
> LC_TELEPHONE="C"
> LC_MEASUREMENT="C"
> LC_IDENTIFICATION="C"
> LC_ALL=C
>
> It seems that subprocesses don't get that locale informations anymore.
>
> Regards
> Klaus
> --
> Klaus Ethgen http://www.ethgen.ch/
> pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus@Ethgen.ch>
> Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C


--- End Message ---

Reply to: