1.0.12.26: Fix minor regression in win32 native-namestringification
authorkreuter <kreuter>
Mon, 10 Dec 2007 22:16:47 +0000 (22:16 +0000)
committerkreuter <kreuter>
Mon, 10 Dec 2007 22:16:47 +0000 (22:16 +0000)
src/code/win32-pathname.lisp: some Windows system calls don't accept
                              directory names ending with backslashes.

src/code/win32-pathname.lisp
version.lisp-expr

index f904d6e..e91a7b2 100644 (file)
                (unparse-win32-file pathname)))
 
 (defun unparse-native-win32-namestring (pathname as-file)
-  (declare (type pathname pathname))
+  (declare (type pathname pathname)
+           ;; Windows doesn't like directory names with trailing slashes.
+           (ignore as-file))
   (let* ((device (pathname-device pathname))
          (directory (pathname-directory pathname))
          (name (pathname-name pathname))
               (string (write-string piece s))
               (t (error "ungood directory segment in NATIVE-NAMESTRING: ~S"
                         piece)))
-            (when (or directory (not as-file))
+            (when (or directory name)
               (write-char #\\ s)))
           (when directory
             (go :subdir))
index a56c9a6..9e3bcb1 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.12.25"
+"1.0.12.26"