Re: cl-http on clozure

Mark Klein <[email protected]> Sun, 2 Jan 2011 17:08:50 -0500
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
Where can we get the updated source? The latest version on http://www.cl-http.org:8001/ 
  is 70.190 from 2005.

     Thanks,

	Mark

> Hi,
>
> I have fixed it slightly different in the CL-HTTP sources.
>
> In the older sources there was (concatenate 'string foostring "bar").
>
> I had changed that for LispWorks, which has multiple string types  
> and where STRING would not always be an acceptable result type given  
> FOOSTRING of some string type. I have added some Unicode support for  
> LispWorks and CL-HTTP (in the contribs), where this matters. With my  
> contrib CL-HTTP (under LispWorks) supports things like form text in  
> Unicode, Unicode in search URLs, etc.
>
> Now there is a function STRING-TYPE-SYMBOL, which returns the type  
> as a symbol (without size information). This function is used in  
> these places.
>
> Regards,
>
> Rainer
>
>
>
> Am 28.12.2010 um 17:28 schrieb Mark Klein:
>
>>
>>
>> Karsten,
>>
>> Thanks very much for following up on this. It's great you fixed an  
>> issue that applies to so many lisps.
>>
>> If I want get cl-http working on CCL, do I just need to load your  
>> test file before loading cl-http?
>>
>> Are you going to update CCL or cl-http in January? If the latter,  
>> will you create an updated version of cl-http 70.218? That's the  
>> version I use.
>>
>>     Mark
>>
>>
>>> 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
>>>
>>>
>>> <test-string-concat.lisp>
>>
>> -------------------------------
>> Mark Klein
>> Principal Research Scientist
>> MIT Center for Collective Intelligence
>> http://cci.mit.edu/klein/
>

-------------------------------
Mark Klein
Principal Research Scientist
MIT Center for Collective Intelligence
http://cci.mit.edu/klein/


_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl