Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2015-05-23

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:08 favonia joined #darcs
00:20 sm BitPuffin|osx: does http://hub.darcs.net/#how-do-i-configure-ssh-access help
03:44 mizu_no_oto joined #darcs
10:30 amgarching joined #darcs
11:41 maerwald sm: do you think it would be useful to remove ByteString.Char8 usage since it just truncates chars instead of properly encoding them into binary format
11:41 maerwald arguably that's not a big problem with HTTP headers, since most of the time they are ASCII, but...
11:53 _loic_ joined #darcs
12:03 maerwald the body can still contain unicode
12:06 maerwald response <- fmap responseBody $ liftIO $ withManager $ httpLbs request
12:06 maerwald let Ok jo = decode (unpack response) :: Result (JSObject JSValue)
12:06 maerwald here unpack refers to Data.ByteString.Lazy.Char8 so we can indeed lose information
13:04 _loic_ joined #darcs
13:44 Riastradh joined #darcs
17:03 sm maerwald: do you think it's causing troube ? we do have a unicode bug or two in the tracker
17:04 maerwald sm: I can't say for sure, but I have already started to "fix" it and I will test once it's done
17:06 maerwald I'm not sure if fixing it in all places is a good idea, though
17:06 maerwald are there "unicode attacks" on HTTP level?
17:07 * sm thinks "if it ain't broke don't fix it"
17:07 maerwald sm: https://github.com/quchen/articles/blob/master/fbut.md#bytestringchar8-is-bad
17:39 maerwald sm: for that particular code we access the responseBody without examining the responseHeader for the charset
17:42 maerwald so it's assumed it's valid Char8 and then it's directly decoded via the Text.JSON module
17:48 amgarching joined #darcs
18:13 BitPuffin|osx joined #darcs
18:19 maerwald we'd need something like: decodeBody :: ResponseHeaders -> ResponseBody -> String
18:19 maerwald and I wonder if there's already a library function for that
18:31 amgarching joined #darcs
19:23 sm maerwald: #snap might have good tips
19:29 favonia joined #darcs
21:11 amgarching joined #darcs
22:03 amgarching joined #darcs
22:34 BitPuffin|osx joined #darcs
22:36 BitPuffin|osx sm: turns out the issue was the permissions on my private key
23:02 amgarching joined #darcs
23:10 maerwald BitPuffin|osx: that's a confusing error message though

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary