view: Avoid using ':' from metadata when generating a view
authorJoey Hess <joeyh@joeyh.name>
Mon, 26 Oct 2020 19:37:55 +0000 (15:37 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 26 Oct 2020 19:38:08 +0000 (15:38 -0400)
commit64e7bac810daac236c14ce31c84e4158bf9c7759
tree55a8650d8eab4a83e826701dc94a8d1490b4bc9d
parent2d291bf2003e56269ca55b58c44b4adbc59971b7
view: Avoid using ':' from metadata when generating a view

Because it's a special character on Windows ("c:").

Use same technique already used for '/' and '\'.

I didn't record how I generated their encoded forms before, so am sure
there was a better way, but the way I did it now is to look at

ghci> encodeFilePath "∕"
"\226\136\149"

And then the difference from that to "\56546\56456\56469"
is adding 56320 to each, to get up to the escaped code plane.

See comment for why I think handling ':' is ok, but that other illegal
windows filenames won't. Note that, this should be enough to make the
test suite always work. Other windows illegal filenames will fail at
checkout time when it tries to put the illegal filename on the
filesystem.
Annex/View.hs
CHANGELOG
doc/bugs/1_test_failure_under_conda_on_Windows_10__58___prop__95__view__95__roundtrips.mdwn
doc/bugs/1_test_failure_under_conda_on_Windows_10__58___prop__95__view__95__roundtrips/comment_3_06dd9606225cf881f7681fc27fb4833d._comment [new file with mode: 0644]