Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-lwp-gsoc, 2014-07-16

| Channels | #perl6-lwp-gsoc index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:28 FROGGS__ joined #perl6-lwp-gsoc
01:49 ilbot3 joined #perl6-lwp-gsoc
01:49 Topic for #perl6-lwp-gsoc is now logs at http://irclog.perlgeek.de/perl6-lwp-gsoc/
06:08 sergot o/
06:15 sergot FROGGS__: how to teach p6 to handle iso-8859-2?
07:43 FROGGS__ sergot: I thought we had this already :o)
07:44 FROGGS__ sergot: you've got a buf8 or so, that contains the bytes that should be decoded using latin2, right?
07:47 sergot yes
07:47 sergot but it prints an error
07:48 FROGGS__ I would write a sub that takes that buf8 as input, maps all latin2 specific chars to their unicode values, and then decode the result (also a buf8) to a string using utf8
07:49 sergot how to map specific char to unicode value?
07:49 sergot from latin2
07:49 FROGGS__ manually?
07:49 sergot in p6
07:49 FROGGS__ manually?
07:49 sergot yes
08:27 sergot Do we have to do this for every iso-8859-* ?
08:27 sergot or just make it works  for me?
08:35 FROGGS__ at the end for every one
08:35 FROGGS__ but let's practice on latin2 first
08:35 FROGGS__ s/on/with/
09:06 sergot a lot of writing
09:07 FROGGS[mobile] joined #perl6-lwp-gsoc
09:28 sergot dalek doesnt work I think
09:28 sergot moritz: hm?
09:32 dalek http-useragent: 9202c44 | sergot++ | lib/HTTP/UserAgent.pm6:
09:32 dalek http-useragent: latin2-to-u added
09:32 dalek http-useragent: review: https://github.com/sergot/http-useragent/commit/9202c44925
09:35 sergot FROGGS__: what do you think?
09:35 sergot it looks ... big
09:35 sergot :D
10:42 FROGGS__ sergot: I try to put all of iso-8859-* now into MoarVM...
10:43 sergot ohh, ok :)
10:43 sergot will be great
12:42 dalek io-socket-ssl: 29138c4 | (Filip Sergot)++ | META.info:
12:42 dalek io-socket-ssl: [META.list] extended description
12:42 dalek io-socket-ssl: review: https://github.com/sergot/io-socket-ssl/commit/29138c436c
18:18 FROGGS__ I'm not sure anymore that I want to add 32 files to MoarVM just for iso-8859 :/
18:28 sergot Oh...
18:28 sergot a lot
18:28 sergot Let's write a module
18:28 sergot like p5's Encode
18:28 sergot https://metacpan.org/pod/Encode
18:29 sergot Encode::decode($encoding, $text or something);
18:29 sergot buf I meant
18:31 sergot FROGGS__: what do you think? :)
18:32 FROGGS__ yeah, I think that is the way to go...
18:32 FROGGS__ we can autogenerate most stuff from here btw: ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-2.TXT
19:36 sergot I'll do this tomorrow then.
19:36 sergot :
19:36 sergot :)
19:38 FROGGS__ sergot++

| Channels | #perl6-lwp-gsoc index | Today | | Search | Google Search | Plain-Text | summary