summaryrefslogtreecommitdiff
path: root/doc/forum/Privdata_corrupted_when_spinning_from_macOS/comment_3_c51e4ae44dc6401af54f109f2cb70995._comment
blob: 05b5956b74cbe4491cea476d682c4df1fcb34ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[[!comment format=mdwn
 username="mithrandi"
 avatar="http://cdn.libravatar.org/avatar/869963bdf99b541c9f0bbfb04b0320f1"
 subject="comment 3"
 date="2018-08-15T19:15:21Z"
 content="""
I tried this patch:

```
--- a/src/Propellor/Spin.hs
+++ b/src/Propellor/Spin.hs
@@ -181,6 +181,8 @@ getSshTarget target hst
 -- running the updateServer
 update :: Maybe HostName -> IO ()
 update forhost = do
+       hPrint stderr =<< hGetEncoding stdin
+       hSetEncoding stdin utf8
        whenM hasGitRepo $
                req NeedRepoUrl repoUrlMarker setRepoUrl
```

I get `Just ANSI_X3.4-1968` from the remote side but unfortunately the corruption persists.
"""]]