Fix spurious backslashes in URIs on win32.
------------------------------------------
> Petr Rockai <m...@mornfall.net>**20100510161347
>  Ignore-this: 5232a642bba8fa0250c3eb9e46310130
> ] hunk ./src/Darcs/Repository/HashedRepo.hs 331
>  
>  read_inventory_private :: Cache -> String -> String -> IO (Maybe String, 
> [(PatchInfo, String)])
>  read_inventory_private _ d iname = do
> -    i <- skip_pristine `fmap` fetchFilePS (d </> iname) Uncachable
> +    i <- skip_pristine `fmap` fetchFilePS (d ++ "/" ++ iname) Uncachable -- 
> /, this is URL
>      (rest,str) <- case BC.break ((==)'\n') i of
>                    (swt,pistr) | swt == BC.pack "Starting with inventory:" ->
>                      case BC.break ((==)'\n') $ B.tail pistr of

This should go in, but this reminds me, don't we have a policy of using
System.FilePath.Posix specifically to avoid any risk of funny business?

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

Attachment: signature.asc
Description: Digital signature

_______________________________________________
darcs-users mailing list
darcs-users@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to