Package: less
Version: 643-1
Severity: normal
Tags: l10n
Control: affects -1 = apt-listchanges

Dear Maintainer,

   echo -e 'foo\nbar' | less -Ps"Drücken Sie q zum Beenden (Quit)"

displays as

   foo
   bar
   Dr^@¼cken Sie q zum Beenden (Quit)
   
instead of the expected

   foo
   bar
   Drücken Sie q zum Beenden (Quit)
   
With other languages it gets even worse. The equivalent Romanian
example

   echo -e 'foo\nbar' | less -Ps'apăsați tasta «q» pentru a ieși'
   
results in

   foo
   bar
   ap^@<U+0083>sa^@<U+009B>i tasta ^@«q^@» pentru a ie^@<U+0099>i
   

The issue shows up prominently with reports displayed on terminal by
apt-listchanges when running 'apt update' on machines configured with a
default locale its translation of "press q to quit" contains non-ASCII
characters [1]. CJK strings are completely unreadable. 

[1] https://salsa.debian.org/debian/apt-listchanges/-/tree/debian/unstable/po

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

Kernel: Linux 6.10.11-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages less depends on:
ii  libc6      2.40-2
ii  libtinfo6  6.5-2

less recommends no packages.

less suggests no packages.

-- no debconf information

-- 
GPG Fingerprint
3DF5 E8AA 43FC 9FDF D086 F195 ADF5 0EDA F8AD D585

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to