]> git.donarmstrong.com Git - lilypond.git/commitdiff
#4746: Fix is-absolute? on Windows
authorUrs Liska <ul@openlilylib.org>
Tue, 19 Jan 2016 09:40:13 +0000 (10:40 +0100)
committerUrs Liska <ul@openlilylib.org>
Sun, 24 Jan 2016 20:24:09 +0000 (21:24 +0100)
is-absolute? only looked for "?:/" and not for "?:\" to determine
the drive letter on Windows. Therefore
#(display (is-absolute? (ly-getcwd))) erroneously returned #f on Windows.

scm/lily.scm

index c670eb15bf31e90ac6218fe08df33ebcd9e31847..eb487d33e9f0cc19c4443105c4b1d8c6fc26fd32 100644 (file)
@@ -507,7 +507,8 @@ messages into errors.")
             (and (eq? PLATFORM 'windows)
                  (> file-name-length 2)
                  (eq? (string-ref file-name 1) #\:)
-                 (eq? (string-ref file-name 2) #\/))))))
+                 (or (eq? (string-ref file-name 2) #\\)
+                     (eq? (string-ref file-name 2) #\/)))))))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; If necessary, emulate Guile V2 module_export_all! for Guile V1.8.n