Re: Different locale for pinentry

Klaus Ethgen <[email protected]> Mon, 6 Apr 2026 13:53:31 +0100
Newsgroups gmane.comp.encryption.gpg.user
Message-ID <adOsyzDDrRXDxS_0@chil>
Hi,

Am Mo den  6. Apr 2026 um 13:12 schrieb [email protected]:
> > 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 <[email protected]>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C

_______________________________________________
Gnupg-users mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-users
signature.asc (application/pgp-signature, 728 B)
-----BEGIN PGP SIGNATURE-----
Comment: Charset: ISO-8859-1

iQHPBAABCgA5FiEE2oNkebTd5YKFiBG5fue2cNoeGfgFAmnTrMUbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJEH7ntnDaHhn44qUMAIAFw2zMTIyzhoW0Ikud
uIB9bYU0jtzWCubgXgTeBEU504wQe4Z02NEQoGW+7F4A6PXM8Zx8+y0yUNKYK+AO
2UnWN+eYpiPv83xFHDnX5cIfxw6d82mH8yHNpJ3juKcGU/t77tncoE6SwoH/fot6
kkobFFz4tZIShEvcPjC7A5XT41pskX/KiOsMDBzy6coygG9h6iR3b/VWgNft4Y81
Cu/jHRktNxTEua715qalp34+HDrdj8OMYZ9jMkre+3D4kbLbdw3YaQMqhincP/Sm
tIvNrUeJLT581Ts2mQoiXQUVyzTrOyB0H79pMGBR25S+hCFUUJlplwdwZKxpAed1
AQLmETDKTTag4ewAoLjNgCA3oTdALUVYXufZZlFXZHj/LbZu0xabiKAKpEgOQ9Z5
uaWZUAOfTOuAbmq0givKqKadv7lnOnxNWkki13G7Oj0+NEXsVzx8hwpMhLiMGra6
IcsNtC7No7Q5Idm7y56gjnN+PLO0l8xBm5dLxTZoPvEtfg==
=vIkh
-----END PGP SIGNATURE-----