[cl-smtp-devel] bug: external-format is ignored when SSL is used

Anton Vodonosov avodonosov at yandex.ru
Thu Aug 22 02:24:02 UTC 2013


Hello.

I've just hit a bug when used CL-SMPT - it failed
to send a message with non-ascii characters
over secure connection, despite the default
:external-format :utf-8 is used.

The reason is in the function cl-smtp::smtp-handshake.
When SSL is used, the function throws away the original
flexi-stream having correct external-forma and
creates new flexi-stream, with hardcoded latin-1 external
format.

The attached patch fixes that by reusing the flexi-stream-external-format
of the original flexi-stream when creating the new one.

Best regards,
- Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cvs.diff
Type: application/octet-stream
Size: 2081 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cl-smtp-devel/attachments/20130822/052cff22/attachment.obj>


More information about the cl-smtp-devel mailing list