From 346d5be3c8912dcae3654d7d208f38ddb34a7819 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Sat, 4 Mar 2017 20:52:28 -0800 Subject: [PATCH] Fix langsvr crashes on windows. Change-Id: If97466f622c8bde86746a3e3bd04a8e6f590dec9 --- core/langsvr/uri.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/langsvr/uri.go b/core/langsvr/uri.go index d6d70d6a4b..706499ec1b 100644 --- a/core/langsvr/uri.go +++ b/core/langsvr/uri.go @@ -34,5 +34,5 @@ func URItoPath(uri string) (string, error) { // PathToURI returns the URI for the absolute filepath func PathToURI(path string) string { - return "file://" + path + return "file://" + filepath.ToSlash(path) }