From 5879f087c7f656396955f211d9dacb8bc575c6ae Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 13 Nov 2025 14:45:23 +0100 Subject: [PATCH] fix(windows): handle forward slash for KEYMAN_ROOT env var Test-bot: skip --- common/windows/delphi/general/KeymanPaths.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/windows/delphi/general/KeymanPaths.pas b/common/windows/delphi/general/KeymanPaths.pas index 4086be32ce..a0cc07d5b4 100644 --- a/common/windows/delphi/general/KeymanPaths.pas +++ b/common/windows/delphi/general/KeymanPaths.pas @@ -395,7 +395,7 @@ var begin // On developer machines, if we are running within the source repo, then use // those paths - keyman_root := GetEnvironmentVariable('KEYMAN_ROOT'); + keyman_root := GetEnvironmentVariable('KEYMAN_ROOT').Replace('/', '\'); if (keyman_root <> '') and SameText(keyman_root, ParamStr(0).Substring(0, keyman_root.Length)) then begin // Source repo, bin folder