different way to avoid NUL in Arbitrary AssociatedFile
authorJoey Hess <joeyh@joeyh.name>
Mon, 30 Dec 2019 16:27:45 +0000 (12:27 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 30 Dec 2019 16:27:45 +0000 (12:27 -0400)
commit70395659db9f662e61009d984fc9b0b2f24fdece
tree146c879368ecb40b69bb3952aae959556532822c
parent6d10fecff48ed6068b03659d88ffca7c89e79c62
different way to avoid NUL in Arbitrary AssociatedFile

Test case has been intermittently failing, with an AssociatedFile that
somehow contains a NUL despite it being filtered out. My guess is
something to do with locales. This new approach should prevent any NUL
at all, although it does weigh the distribution a bit more toward
Nothing.
Key.hs