[cl-emb-devel] Multibyte external file format patch for cl-emb::contents-of-file function

Tomasz Skutnik tomasz.skutnik at gmail.com
Sat Apr 12 20:46:52 UTC 2008


Hi.

I've encountered the problem with contents-of-file function, that manifests
itself for multibyte external file encodings (e.g. UTF-8). contents-of-file
allocates (file-length in) characters, which for multibyte encodings is less
then number of characters read by read-sequence. This leaves dangling
characters (implementation dependent) at end of template code. Attached
patch solves the problem.

Apply at will.

Thanks

Tomasz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-emb-devel/attachments/20080412/f3a1ee06/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cl-emb-0.4.3-cof.patch
Type: text/x-diff
Size: 953 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cl-emb-devel/attachments/20080412/f3a1ee06/attachment.patch>


More information about the cl-emb-devel mailing list