From: Daiki Ueno <ueno@unixuser.org>
Cc: ding@gnus.org, "Frank Küster" <frank@kuesterei.ch>
Subject: Re: default-enable-multibyte-characters in pgg-gpg
Date: Wed, 29 Mar 2006 20:59:04 +0900 [thread overview]
Message-ID: <fbadf291-3e4a-421e-9c82-f7c00feecdbb@well-done.deisui.org> (raw)
In-Reply-To: <v93bh1a3z1.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Wed, 29 Mar 2006 13:24:18 +0200")
Hello Reiner,
>>>>> In <v93bh1a3z1.fsf@marauder.physik.uni-ulm.de>
>>>>> Reiner Steib <reinersteib+gmane@imap.cc> wrote:
> > Setting default-enable-multibyte-characters in pgg-gpg-start-process
> > makes GnuPG messages unreadable under multibyte locales.
> >
> > I found the article which introduced this change:
> > http://article.gmane.org/gmane.emacs.gnus.general/50457
> > I think this case is rare, and doubt that this really fixed the problem.
> At least Frank has confirmed that it does fix it for him in
> <http://article.gmane.org/gmane.emacs.gnus.general/50877>. Could you
> suggest a better fix? Maybe we could bind enable-multibyte-characters
> only in some of the callers of `pgg-gpg-start-process', where
> appropriate?
> > Could anyone who can use a German keyboard check the attached patch?
> As your patch just reverts this patch, I'd guess that it will
> reintroduce the problem the other patch tried to solve.
Ah, I understand why this was necessary at that time.
When the patch was introduced, pgg-gpg used synchronous code and sent
a passphrase together with data on a temp buffer:
(defun pgg-gpg-process-region (start end passphrase program args)
...
(let ((coding-system-for-write 'binary)
(input (buffer-substring-no-properties start end))
(default-enable-multibyte-characters nil))
(with-temp-buffer
(when passphrase
(insert passphrase "\n"))
(insert input)
(setq exit-status
(apply #'call-process-region (point-min) (point-max) program
nil errors-buffer nil args))))
So I think setting default-enable-multibyte-characters is no longer
necessary because we switched to use asynchronous code and passphrases
are sent separately.
Regards,
--
Daiki Ueno
next prev parent reply other threads:[~2006-03-29 11:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-29 5:51 Daiki Ueno
2006-03-29 11:24 ` Reiner Steib
2006-03-29 11:59 ` Daiki Ueno [this message]
2006-03-29 13:31 ` Reiner Steib
2006-03-29 15:16 ` Simon Josefsson
2006-03-29 19:59 ` PGG: byte length problem in pass-phrase (was: default-enable-multibyte-characters in pgg-gpg) Reiner Steib
2006-03-30 0:41 ` PGG: byte length problem in pass-phrase Daiki Ueno
2006-03-30 8:59 ` Simon Josefsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fbadf291-3e4a-421e-9c82-f7c00feecdbb@well-done.deisui.org \
--to=ueno@unixuser.org \
--cc=ding@gnus.org \
--cc=frank@kuesterei.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).