[plt-scheme] parsing windows path on linux?
On Sun, Jan 11, 2009 at 6:49 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>
> Since most of the functions provided by `scheme/path' manipulate paths
> without consulting the filesystem, I've changed them to work with paths
> of any kind. (The exceptions are `normalize-path' and
> `simple-form-path', which rely on the filesystem.)
>
Thanks for the changes Matthew.
> I'm less certain that it would be a good idea to change `string->path'
> and `path->string' to allow with paths for a different system kind. The
> problem is that string<->path conversions are inherently approximate;
> some paths cannot be represented as strings
I didn't realize that there are paths that cannot be written as strings.
What types of paths are those (or do you happen to have a link)?
> , and for Unix paths, the
> conversion depends on a locale-specific encoding. If you're
> manipulating paths for a different system and you're forced to start
> and end with strings, though, then UTF-8 is probably the right choice.
> So I've added `string->some-system-path' and `some-system-path->string'
> to `scheme/path'.
>
That'll be great help. Thanks again,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090111/47bffb50/attachment.html>