<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body>
Please remove me from this thread<br><br><br><div class="yahoo-signature"><a style="font-size:12px" href="https://aolapp.onelink.me/eG2g?pid=NativePlacement&c=US_Acquisition_YMktg_320_EmailSignature_AttributionDL&af_sub1=Acquisition&af_sub2=US_YMktg&af_sub3=&af_sub4=100002473&af_sub5=SentFromNewAOLApp__Interstitial_&af_ios_store_cpp=ce85ce34-ad0f-4811-a92b-a172743b064e&af_android_url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.aol.mobile.aolapp%26listing%3Demail_signature_attribution">Sent from the all new AOL app for iOS</a><br></div><br><p class="yahoo-quoted-begin" style="font-size: 15px; color: rgb(132, 115, 255); padding-top: 15px; margin-top: 0px;">On Monday, April 6, 2026, 12:17 PM, Klaus Ethgen <klaus+gnupg@ethgen.ch> wrote:</p><blockquote class="iosymail">Hi Werner,<br><br>Am Mo den  6. Apr 2026 um 16:42 schrieb Werner Koch:<br>> On Mon,  6 Apr 2026 00:35, Klaus Ethgen said:<br>> <br>> > Is there any way to start GUI stuff with UTF-8-locale instead of<br>> > something else? Alternatively, the whole gpg-agent or any pinentry could<br>> > be made started with UTF-8.<br>> <br>> The static strings presented by Pinentry (like Counter:/Zähler:) are<br>> provided by gpg-agent.  Thus the gettext used by gpg-agent is<br>> responsible for this.  gpg-agent however switches gettext quite early to<br>> utf-8:<br>> <br>>   /* gpg-agent usually does not output any messages because it runs in<br>>      the background.  For log files it is acceptable to have messages<br>>      always encoded in utf-8.  We switch here to utf-8, so that<br>>      commands like --help still give native messages.  It is far<br>>      easier to switch only once instead of for every message and it<br>>      actually helps when more then one thread is active (avoids an<br>>      extra copy step). */<br>>     bind_textdomain_codeset (PACKAGE_GT, "UTF-8");<br>> <br>> Thus pinentry sees UTF-8 and depending on the type of pinentry this<br>> should work.<br><br>That is strange as it is definitivelly latin1 what reaches pinentry.<br><br>When did that come into the source?<br><br>I use gpg-agent on gentoo in version 2.5.17-r2 and my use flags are<br>alternatives, bzip2, nls, readline, smartcard, ssl, tofu and tools.<br><br>> It might be that sme pinentries switch to some native<br>> encoding depending on $TERM.<br><br>See my last post, Thanks to chris I checked that and pinentry does not<br>care about environment settings.<br><br>>   gpg-connect-agent 'getinfo std_env_names' /bye<br>> <br>> gives a list of envvars passed on to Pinentry and are initially set by<br>> gpg, gpgsm etc.<br><br>```<br>~> gpg-connect-agent 'getinfo std_env_names' /bye<br>D GPG_TTY<br>D TERM<br>D DISPLAY<br>D XAUTHORITY<br>D XMODIFIERS<br>D WAYLAND_DISPLAY<br>D XDG_SESSION_TYPE<br>D QT_QPA_PLATFORM<br>D GTK_IM_MODULE<br>D DBUS_SESSION_BUS_ADDRESS<br>D QT_IM_MODULE<br>D INSIDE_EMACS<br>D PINENTRY_USER_DATA<br>D PINENTRY_GEOM_HINT<br>OK<br><br>~/.gnupg> cat gpg-agent.conf<br>default-cache-ttl 34560000<br>max-cache-ttl 34560000<br>log-file /home/klaus/.gnupg/gpg-agent.log<br>no-allow-external-cache<br>enable-ssh-support<br>ssh-fingerprint-digest SHA256<br>allow-preset-passphrase<br><br>grab<br>#debug-pinentry<br><br># Erst ab Agent 2.1.12<br>enable-extended-key-format<br>```<br><br>I use pinentry-qt6.<br><br>So something is definitivelly wrong here.<br><br>Regards<br>   Klaus<br><br>Ps. Gruß aus der Schweiz.<br>-- <br>Klaus Ethgen                                       <a href="http://www.ethgen.ch/" target="_blank">http://www.ethgen.ch/</a><br>pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <<a ymailto="mailto:Klaus@Ethgen.ch" href="mailto:Klaus@Ethgen.ch">Klaus@Ethgen.ch</a>><br>Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C<br>_______________________________________________<br>Gnupg-users mailing list<br><a ymailto="mailto:Gnupg-users@gnupg.org" href="mailto:Gnupg-users@gnupg.org">Gnupg-users@gnupg.org</a><br><a href="https://lists.gnupg.org/mailman/listinfo/gnupg-users" target="_blank">https://lists.gnupg.org/mailman/listinfo/gnupg-users</a><br><blockquote></blockquote></blockquote>
</body></html>