Different locale for pinentry
Klaus Ethgen
klaus+gnupg at ethgen.ch
Mon Apr 6 14:53:31 CEST 2026
Hi,
Am Mo den 6. Apr 2026 um 13:12 schrieb chris at anthum.com:
> > Is there any way to start [pinentry] GUI ... with UTF-8-locale instead of
> > something else?
>
> #!/bin/bash
>
> echo "?????? Latin-1 Test ??????"
> LANG=en_US.ISO8859-1 LC_ALL=en_US.ISO8859-1 pinentry --ttyname /dev/tty <<'EOF'
> SETDESC Latin-1 test: Héllo ??? wörk? ?????????
> SETPROMPT Pässwörd:
> GETPIN
> BYE
> EOF
>
> echo "?????? UTF-8 Test ??????"
> LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 pinentry --ttyname /dev/tty <<'EOF'
> OPTION lc-ctype en_US.UTF-8
> SETTTYNAME /dev/tty
> SETTTYTYPE xterm-256color
> SETDESC UTF-8 test: Héllo ??? wörk? ?????????
> SETPROMPT Pässwörd:
> GETPIN
> BYE
> EOF
They give the same result. I tried it once saving the file as latin1
where both versions are identical and the same (but different, correct
output) when I save it as utf8.
So I guess that gpg-agent needs to use different encoding.
Regards
Klaus
--
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus at Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 728 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20260406/0793d694/attachment.sig>
More information about the Gnupg-users
mailing list