Re: what's the correct behavior of directory-namestring

David Scherfgen via Sbcl-help <[email protected]> Wed, 30 Jul 2025 00:06:45 -0700
Newsgroups gmane.lisp.steel-bank.general
Message-ID <CAMTHLKj=HsgOsYbPFMXxv5bEqsYZk6dmz0=GgprDtkiWbyDgkA@mail.gmail.com>
I think it's not defined by the Common Lisp standard. Pathnames also have a
"device" component, this should be the drive letter in Windows, e.g. "R:"
in your case.

Jinsong Zhao <[email protected]> schrieb am Di., 29. Juli 2025, 23:56:

> Hi there,
>
> I am using SBCL on Windows. I also have SBCL install on Debian Linux and
> FreeBSD.
>
> I have to deal with some pathnames, for example:
> #P"R:/Temp/abc/"
>
> When passing the pathname to directory-namestring in SBCL 2.5.7 on
> Windows, I got:
>
> * (directory-namestring #P"R:/Temp/abc/")
> "/Temp/abc/"
>
> SBCL 2.2.9 on Debian and 2.5.6 on FreeBSD, booth give:
>
> * (directory-namestring #P"R:/Temp/abc/")
> "R:/Temp/abc/"
>
> Which is the correct behavior?
>
> Best,
> Jinsong
>
>
>
> _______________________________________________
> Sbcl-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sbcl-help
>

_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help