>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
>>>> "Simon" == Simon Josefsson
<jas(a)extundo.com> writes:
Simon> On 18 Mar 2002, Nick V. Pakoulin
wrote:
>> The solution is to set coding system for the process:
>>
>> --- mail-lib/pop3.el Fri Oct 6 13:40:48 2000 +++ /c/Program
>> Files/XEmacs/xemacs-packages/lisp/mail-lib/pop3.el Mon Mar 18
>> 15:12:22 2002 @@ -248,6 +248,7 @@ (erase-buffer)) (setq process
>> (open-network-stream "POP" process-buffer mailhost port)) +
>> (set-process-input-coding-system process 'binary)
Simon> Look a few lines up, and you see that
Simon> `coding-system-for-{read,write}' is bound. It should be
Simon> sufficient IMHO.
Stephen> Er, the function unbinds c-s-f-r as it returns the
Stephen> process. c-f-s-r is consulted by functions that read
Stephen> from streams, not by functions that create streams. So
Stephen> when you read from the process, the value of c-s-f-r is
Stephen> not bound.
Stephen> Nick's code sets the coding system for the process, which
Stephen> you can then return. Since this is part of the process,
Stephen> it works.
Stephen> Don't ask me why the API is designed this way.
We also need to test for file-coding (or boundedness of involved
variables and functions) in any patches to pop3.el or nntp.el not to
break under released XEmacsen built without file-coding feature.
Adrian
Stephen> --
Stephen> Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
Stephen> University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573
JAPAN
Stephen> Don't ask how you can "do" free software
business;
Stephen> ask what your business can "do for" free
software.
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/