better fix for slash in view metadata

The homomorphs are back, just encoded such that it doesn't crash in LANG=C

However, I noticed a bug in the old escaping; [pseudoSlash] was escaped the
same as ['/','/']. Fixed by using '%' to escape pseudoSlash. Which requires
doubling '%' to escape it, but that's already done in the escaping of
worktree filenames in a view, so is probably ok.
This commit is contained in:
Joey Hess 2016-01-08 13:55:35 -04:00
parent 42619e2231
commit 51bc32e21e
Failed to extract signature
3 changed files with 30 additions and 14 deletions

View file

@ -21,4 +21,7 @@ unicode support.
Sigh, 2016 and still can't have nice things.. Suppose it'll have to use an
ugly encoding for them instead.
Update: Can have nice things, just have to encode the characters using the
FileSystemEncoding!
"""]]