[plt-scheme] Does plt-scheme handle white spaces in path strings automatically?

From: Amit Saha (lists.amitsaha at gmail.com)
Date: Mon Jul 27 01:06:11 EDT 2009

Hi Jens,

Jens Axel Søgaard wrote:
> Hi Amit,
>> Does 'string->path' handle the white spaces in path names automatically?
> Yes.
>> I am trying to open files with 'with-input-from-file' to which I have
>> specified a path using 'string->path' and where the path contains spaces. I
>> am getting a "cannot open input file"..
>> Any pointers would be very appreciated.
> It must be something else. Can you post the code that is
> causing troubles?

Sorry for crying before finding the nature of the problem. The filename 
that I am trying to open is being retrieved from a HTTP GET request 
string which encodes the spaces as %20, hence plt-scheme cannot open the 
file, because there is no such file with that name.

So, I will now substitute the %20s by a space and then open it.


email: amitsaha.in at gmail.com
Journal: http://amitksaha.wordpress.com
µ-blog: http://twitter.com/amitsaha
IRC: cornucopic on #scheme, #lisp, #math, #linux

Posted on the users mailing list.