From tomasz.skutnik at gmail.com Sat Apr 12 20:46:52 2008 From: tomasz.skutnik at gmail.com (Tomasz Skutnik) Date: Sat, 12 Apr 2008 22:46:52 +0200 Subject: [cl-emb-devel] Multibyte external file format patch for cl-emb::contents-of-file function Message-ID: <533c96720804121346g4c338c1at80b9f7de4af076e8@mail.gmail.com> 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: -------------- 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: