From b3878e8d28f15178ef39f13c2ba437fd593ef864 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 16 Aug 2018 11:18:42 -0400 Subject: response --- .../comment_5_f12c57263372437edbcdfe89cd69b95d._comment | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/forum/Privdata_corrupted_when_spinning_from_macOS/comment_5_f12c57263372437edbcdfe89cd69b95d._comment (limited to 'doc/forum') diff --git a/doc/forum/Privdata_corrupted_when_spinning_from_macOS/comment_5_f12c57263372437edbcdfe89cd69b95d._comment b/doc/forum/Privdata_corrupted_when_spinning_from_macOS/comment_5_f12c57263372437edbcdfe89cd69b95d._comment new file mode 100644 index 00000000..51f25ecc --- /dev/null +++ b/doc/forum/Privdata_corrupted_when_spinning_from_macOS/comment_5_f12c57263372437edbcdfe89cd69b95d._comment @@ -0,0 +1,17 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 5""" + date="2018-08-16T15:12:58Z" + content=""" +Ah, good debugging! + +The code that runs on the remote side is Propellor.Spin.update, +and it uses Propellor.Protocol.req which reads from stdin. So, +I think that putting `hSetEncoding stdin utf8` in the update function +may fix it for you. + +If so, the real fix will involve making propellor force utf8 on both sides +of its protocol, because the spin might be run in some other locale too. +(Or chainging to a binary protocol that doesn't suffer +from encoding mismatch problems, if someone is ambitious!) +"""]] -- cgit v1.2.3