summaryrefslogtreecommitdiff
path: root/scm
diff options
context:
space:
mode:
authorUrs Liska <ul@openlilylib.org>2016-01-19 10:40:13 +0100
committerUrs Liska <ul@openlilylib.org>2016-01-24 21:24:09 +0100
commit60e2159ae8e7c6c6da0f2ecccc0cd05d3eaf7b55 (patch)
tree7054958bc978b6e8a946d2ba77457329e93dd99a /scm
parente426ea7b5af83739ab2f3a255e8cbac55b16e6ec (diff)
#4746: Fix is-absolute? on Windows
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.
Diffstat (limited to 'scm')
-rw-r--r--scm/lily.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/scm/lily.scm b/scm/lily.scm
index c670eb15bf..eb487d33e9 100644
--- a/scm/lily.scm
+++ b/scm/lily.scm
@@ -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