all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: determining process coding
Date: Fri, 13 Feb 2015 10:41:23 +0200	[thread overview]
Message-ID: <83twyq430s.fsf@gnu.org> (raw)
In-Reply-To: <87r3tu4esn.fsf@ericabrahamsen.net>

> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> Date: Fri, 13 Feb 2015 12:27:04 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> >> Date: Thu, 12 Feb 2015 18:24:16 +0800
> >> 
> >> Gnus opens a long-running connection to an IMAP server through a process
> >> buffer, and while playing with the code, I tried (process-coding-system
> >> (get-buffer-process (current-buffer))) while the IMAP buffer was
> >> current, and it gave me (binary . binary).
> >
> > This probably means Gnus encodes text "by hand" before sending it.
> > Look for encode-coding somewhere.
> 
> It turns out that, in `nnimap-open-connection-1', Gnus explicitly lets
> `coding-system-for-read|write' to 'binary. The actual connection is
> created inside that let, with `open-protocol-stream' (aka
> `make-network-stream').

That's expected.

> I really don't see much else relevant to coding. Most commands are sent
> with `nnimap-send-command', which simply runs:
> 
> (process-send-string (get-buffer-process (current-buffer)) COMMAND)
> 
> The only de|encoding I see going on is with IMAP folder names, with the
> IMAP variant of UTF-7.

Look in the places that create the strings which are then sent with
nnimap-send-command.  If they are encoded, they will be encoded where
they are consed.



  reply	other threads:[~2015-02-13  8:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-12 10:24 determining process coding Eric Abrahamsen
2015-02-12 15:45 ` Eli Zaretskii
2015-02-13  4:27   ` Eric Abrahamsen
2015-02-13  8:41     ` Eli Zaretskii [this message]
2015-02-18  3:49       ` Eric Abrahamsen
2015-02-18 15:22         ` Eli Zaretskii
2015-02-21  4:21           ` Eric Abrahamsen

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=83twyq430s.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.