From 1b7293fb674588594f3163775a5b8d37cd4dc49d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 29 Jan 2025 15:36:41 -0400 Subject: [PATCH] fix windows build --- Utility/OsPath.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utility/OsPath.hs b/Utility/OsPath.hs index 9fa4e0f57e..59302cd53e 100644 --- a/Utility/OsPath.hs +++ b/Utility/OsPath.hs @@ -43,7 +43,7 @@ fromOsPath :: OsPath -> RawFilePath -- On Windows, OsString contains a ShortByteString that is -- utf-16 encoded. So have to convert the input from that. -- This is relatively expensive. -fromOsPath = toRawFilePath . cWcharsToChars_UCS2 . BS16.unpack . getWindowsString +fromOsPath = toRawFilePath . cWcharsToChars_UCS2 . BS16.unpack . getWindowsString . getOsString #else fromOsPath = S.fromShort . getPosixString . getOsString #endif