Package: kwalletcli
Version: 3.03-1+b1
Severity: normal
Dear Maintainer,
kwalletcli provides /usr/bin/ssh-askpass alternative called
/usr/bin/kwalletaskpass.
This shell-script is executed using mksh and in order to enforce a UTF-8 locale
for
Qt, on line 24 the script does
export LANG=C LC_CTYPE=en_US.UTF-8
which is a problem for two reasons. First, is en_US.UTF-8 is not available, it
will
output a confusing error message
W: /usr/bin/kwalletaskpass[24]: setlocale: No such file or directory
and second, it should not hard-code a locale like that in the first place.
Right before line 24, the script reads
unset LC_ALL LANGUAGE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES \
LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
regardless of whether LC_ALL was an acceptable UTF-8 locale, which could have
been used instead of the hard-coded en_US.UTF-8.
A fix here should do two things:
1. Install the helper (or function, or whatever it is supposed to be) called
"setlocale" or depend on a package which provides it (currently there is no
package in Debian sid or trixie that provides such a program in PATH)
2. Inspect the existing environment for an acceptable UTF-8 locale already set
and use that instead (presumably any UTF-8 locale would suffice, so if one
is currenly in use, it should be used).
Best,
Juha
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 13.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.16-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages kwalletcli depends on:
ii libc6 2.41-8
ii libgcc-s1 14.2.0-19
ii libkf5coreaddons5 5.116.0-1
ii libkf5i18n5 5.116.0-1
ii libkf5wallet-bin 5.116.0-1
ii libkf5wallet5 5.116.0-1
ii libqt5core5t64 5.15.15+dfsg-5
ii libqt5widgets5t64 5.15.15+dfsg-5
ii libstdc++6 14.2.0-19
ii mksh 59c-41
Versions of packages kwalletcli recommends:
ii gpg-agent [gnupg-agent] 2.4.7-21
ii kwalletmanager 4:25.04.2-1
ii openssh-client 1:10.0p1-5
ii pinentry-curses [pinentry] 1.3.1-2
ii pinentry-gnome3 [pinentry] 1.3.1-2
ii pinentry-qt [pinentry] 1.3.1-2
ii pinentry-tty [pinentry] 1.3.1-2
kwalletcli suggests no packages.
-- no debconf information