[Openmcl-devel] Print Native File Names on Windows with a Backslash as Separator
R. Matthew Emerson
rme at clozure.com
Mon Jul 2 12:31:18 PDT 2012
On Jun 30, 2012, at 11:06 PM, Learning Common Lisp wrote:
> I use ccl-1.8 on Windows.
>
> I'd like to print path names with a backslash to standard-output.
>
> I tried from the Dosbox:
> wx86cl.exe -n -l "test.lisp"
>
> The content of test.lisp is:
> (print (ccl:native-translated-namestring (pathname "c:/foo/bar/")))
> (quit)
>
> The output I get is:
> "c:/foo/bar/"
>
> How can I get ccl to print a backslash as separator?
There's no way to tell CCL, "hey, use #\\ in Windows pathanmes."
CCL generally wants to pretend that #\/ is the only directory
separator in the world.
Something like
(format t "~a" (substitute #\\ #\/ "c:/foo/bar/"))
is probably the easiest thing to do.
More information about the Openmcl-devel
mailing list