summaryrefslogtreecommitdiff
path: root/doc/todo/bytes_in_privData__63__
diff options
context:
space:
mode:
authorJoey Hess2015-04-19 21:17:02 -0400
committerJoey Hess2015-04-19 21:17:02 -0400
commit9e1f17dd44056904a883d12e97b2b216434f5e1a (patch)
tree707bcefc06ee3ecfa08c6f236c7d102eea8a6557 /doc/todo/bytes_in_privData__63__
parentcb814a2090d26c46b45d66c183829a947108f622 (diff)
comment
Diffstat (limited to 'doc/todo/bytes_in_privData__63__')
-rw-r--r--doc/todo/bytes_in_privData__63__/comment_1_42c107179b091f74ef55aff1fc240c5e._comment19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/todo/bytes_in_privData__63__/comment_1_42c107179b091f74ef55aff1fc240c5e._comment b/doc/todo/bytes_in_privData__63__/comment_1_42c107179b091f74ef55aff1fc240c5e._comment
new file mode 100644
index 00000000..5c1508fd
--- /dev/null
+++ b/doc/todo/bytes_in_privData__63__/comment_1_42c107179b091f74ef55aff1fc240c5e._comment
@@ -0,0 +1,19 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2015-04-20T01:04:26Z"
+ content="""
+I imagine that adding `fileEncoding stdin` to setPrivData will fix
+this crash, but I'd expect there are also other problems with encodings
+for privdata that haskell doesn't like. Similar fixes would probably
+be needed in several other places.
+
+Probably cleaner and better to convert
+`PrivData` from a String to a ByteString, and so avoid encodings
+being applied to it. I think this could be done without changing the
+file format; the privdata file uses Read/Show for serialization,
+and happily ByteString uses the same Read/Show format as String does.
+
+So, changing the type and following the compile errors should get you
+there, I think!
+"""]]