diff --git a/mercurial/match.py b/mercurial/match.py
index 8f67735344ae56198836b40c48a92d1334589912_bWVyY3VyaWFsL21hdGNoLnB5..8a81fa44f7bbdf6955a1a401e71f681ab9b17f6e_bWVyY3VyaWFsL21hdGNoLnB5 100644
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -232,7 +232,7 @@
     False
     """
     assert os.path.isabs(root)
-    cwd = util.normpath(os.path.join(root, cwd))
+    cwd = os.path.join(root, util.localpath(cwd))
     normalize = _donormalize
     if icasefs:
         dirstate = ctx.repo().dirstate