Re: cl-http on clozure
Karsten Poeck <[email protected]> Tue, 28 Dec 2010 14:25:36 +0100
| Newsgroups | gmane.lisp.cl-http |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------010400030502040703050107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
On 12/20/10 10:31 PM, Rainer Joswig wrote:
> I'll have to check that sometime during the next days.
>
> The length of the type is a problem.
>
> Maybe my patch was for an esoteric case where the data-type-string could contain Unicode characters and the Lisp implementation has more than one string type. So concatenate to the type STRING may not work then. What would work is to use a string type which could represent Unicode characters - but one would only use such a string type when the data-type-string would make it necessary.
> Maybe it is not likely that the data-type-string will contain unicode characters?
>
> It should work to generate the type and remove the length from it - if there is one.
>
> I'll have to look at it later this week when I'm back home.
>
> Regards,
>
> Rainer
Hello,
I tried in allegro, clisp, clozure, cmu, ecl, lispworks, rmcl, and sbcl.
The idiom
(let ((data-type-string (string :html)))
(concatenate (type-of data-type-string) data-type-string"
-DIRECTORY"))
fails in all lisps but Lispworks.
The attached version works in all 8 of them.
Will change that in january unless I hear different from Rainer
saludos
Karsten
--------------010400030502040703050107
Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
name="test-string-concat.lisp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="test-string-concat.lisp"
KGRlZnVuIHNhZmUtc3RyaW5nLXR5cGUgKHR5cGUpCiAgKGNvbmQgKChudWxsIHR5cGUpIG5p
bCkKICAgICAgICAoKGF0b20gdHlwZSkKICAgICAgICAgKGlmIChudW1iZXJwIHR5cGUpIAog
ICAgICAgICAgICAgJyoKICAgICAgICAgICB0eXBlKSkKICAgICAgICAodCAobWFwY2FyICdz
YWZlLXN0cmluZy10eXBlIHR5cGUpKSkpCgooZGVmdW4gc2FmZS1jb25jYXRlbmF0ZSAoc3Ry
aW5nMSBzdHJpbmcyKQogIChjb25jYXRlbmF0ZSAoc2FmZS1zdHJpbmctdHlwZSAodHlwZS1v
ZiBzdHJpbmcxKSkgc3RyaW5nMSBzdHJpbmcyKSkKCihkZWZ1biB0ZXN0ICgpCiAgKGxldCAo
KHMxIChzdHJpbmcgOmh0bWwpKSkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgIAogICAodmFsdWVzCiAgICAoc2FmZS1zdHJpbmctdHlwZSAodHlwZS1v
ZiBzMSkpCiAgICAoY29uY2F0ZW5hdGUgKHNhZmUtc3RyaW5nLXR5cGUgKHR5cGUtb2YgczEp
KSBzMSAiLURJUkVDVE9SWSIpCiAgICAoY29uY2F0ZW5hdGUgKHNhZmUtc3RyaW5nLXR5cGUg
KHR5cGUtb2YgczEpKSBzMSAiLURJUkVDVE9SWS1ISUVSQVJDSFkiKSkpKQ==
--------------010400030502040703050107
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl
--------------010400030502040703050107--