<em><a href="Non-Sumou.html">Other GNU Emacs tips</a></em></p>

If you try to open a GnuPG encrypted file in GNU Emacs in Sabayon, i.e. Gentoo, you might run into problems. I couldn't do it, GNU Emacs would get stuck without any activity, CPU load would rise.</p>

Switching to \*epg\* buffer, I saw:</p> <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>can't connect to `/home/jj/.gnupg/S.gpg-agent': Connection refused<br /> pinentry-curses: no LC_CTYPE known - assuming UTF-8<br /> pinentry-curses: no LC_CTYPE known - assuming UTF-8<br /> pinentry-curses: no LC_CTYPE known - assuming UTF-8<br /> pinentry-curses: no LC_CTYPE known - assuming UTF-8</b></td></tr></table>

This is because Gentoo has GnuPG installed by default now, which communicates with gpg-agent, you need to have a <strong>pinentry</strong> program setup etc., a lotta pain.</p>

The solution:</p>

Install GnuPG 1, it can be installed along GnuPG 2, so no problem.</p>

Then the <strong>gpg</strong> binary used will not be a symlink to gpg2 but really gpg (version 1xxx) and GNU Emacs will ask you for the passphrase and decrypt the file. <!— Page published by Emacs Muse ends here —> </div> <i>To send me feedback about this page, use the below email.</i><br /> <b>&copy; sumoudou.org 2010</b><br /> <img style="border:0" alt="sumoudou.org" src="email.gif" width="129" height="10" /><br /> <a href="http://www.gnu.org/" style="text-decoration: none;"><img style="border:0" alt="GNU" src="powered-by-gnu.png" />]] <a href="http://www.gnu.org/software/emacs/emacs.html" style="text-decoration: none;"><img style="border:0" alt="GNU Emacs" src="made-with-emacs.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hcoop-proud-member.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hosted-by-hcoop.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="made-with-muse.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="powered-by-muse.png" />]] <br /> <a href="http://www.fsf.org/resources/formats/playogg" style="text-decoration: none;"><img style="border:0" alt="Ogg" src="play-ogg.png" />]] <a href="http://www.catb.org/hacker-emblem/" style="text-decoration: none;"><img style="border:0" alt="Glider" src="glider.png" />]] <a href="http://ubuntu.com/" style="text-decoration: none;"><img style="border:0" alt="Ubuntu" src="ubuntu.png" />]] <a href="http://validator.w3.org/check?uri=referer" style="text-decoration: none;"><img style="border:0" alt="Valid XHTML 1.0 Strict!" src="valid-xhtml10-blue.png" />]] <a href="http://jigsaw.w3.org/css-validator/check/referer" style="text-decoration: none;"><img style="border:0" alt="Valid CSS!" src="valid-css-blue.png" />]] <br />Last updated 2010-04-23-223344

</div> <br />. </body> </html>

.