[BUG] String asURL fails -- If given a bad URL!

David N. Smith (IBM) dnsmith at watson.ibm.com
Thu Mar 7 20:43:22 UTC 2002


Stephen & Dan:

This work's fine on my Mac: 'file:///PBG3/html/short.html' asUrl

It answers a FileURL with a path of:  OrderedCollection('PBG3' 'html' 'short.html')

Don't forget that it takes THREE slashes, not the usual two.

Dave



At 0:49 -0500 3/7/02, Stephen Pair wrote:
>Why should that work?  Shouldn't that be of the form:
>
>'file:/Macintosh HD/Fun with 3.2/Squeak.15.gif' asUrl
>
>Or, perhaps some new construct:
>
>'Macintosh HD:Fun with 3.2:Squeak.15.gif' asFilename asUrl
>(if Filename classes were implemented)
>
>Or even:
>'Macintosh HD:Fun with 3.2:Squeak.15.gif' asUrlFromFilename
>
>- Stephen
>
>> -----Original Message-----
>> From: squeak-dev-admin at lists.squeakfoundation.org
>> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
>> Behalf Of Dan Ingalls
>> Sent: Thursday, March 07, 2002 12:26 AM
>> To: squeak-dev at lists.squeakfoundation.org
>> Subject: [BUG] String asURL fails
>>
>>
>> I get an error from
>>
>>	'Macintosh HD:Fun with 3.2:Squeak.15.gif' asURL
>>
>> in Squeak as of #4795.
>>
>> Michael produced a work-around so I could open this file, but
>> presumably asURL should be fixed.
>>
>>	- Dan
>>
>>


-- 
_______________________________
David N. Smith
IBM T J Watson Research Center
Hawthorne, NY
dnsmith at watson.ibm.com



More information about the Squeak-dev mailing list