2009 -- the year of November. <november-wiki.org> <github.com/viklund/november> <irclog.perlgeek.de/november-wiki> <nopaste.snit.ch>
Set by moderator on 27 May 2009.
05:40 ihrd joined, ihrd left 06:39 viklund joined 07:08 viklund joined
viklund @tell masak should the form decoding really take place in HTTP::Daeom::ClientConn? 08:28
zarah Consider it noted.
viklund_ bah, I don't understand this 12:01
&lunch
12:03 masak joined
viklund_ masak: I'm investigating that unicode thingy 12:03
masak ok, nice.
zarah masak: You have new messages. Write '/msg zarah @messages' to read them.
masak @messages
zarah masak: 3 h 35 m 44 s ago, viklund said should the form decoding really take place in HTTP::Daeom::ClientConn?
masak um. no, probably not. 12:04
are we using that? I thought we were still on Apache.
viklund_ masak: that's unimportant right now anyway, so is my latest comment on the issue
masak ok. :)
masak reads the backlog, so he can ignore it
viklund_ I've written a small script that's running localy on my apache that echoes the result back to the webpage 12:05
(in perl6)
when I run that, the unicode smiley (☺) gets encoded like this: "%26%239786%3B" 12:06
masak that doesn't look right.
viklund_ which translates to "&#9786;"
which is very good, because that works!!
masak oh, it does? great! 12:07
viklund_ but, when I do the same thing in november (I'm saving everything from parse_params in CGI.pm) the smiley gets encoded as: %E2%98%BA
masak what do you mean , 'translates'?
viklund_ unescape
%26 => & (you know chr(26)) 12:08
masak rakudo: say chr( :16<26> )
p6eval rakudo fb2fd4: OUTPUT«&␤»
masak oh, it's an entity?
viklund_ yep
masak rakudo: say chr( :16<3b> )
viklund_ but CGI.pm gets something else for some reason
p6eval rakudo fb2fd4: OUTPUT«;␤»
masak rakudo: say :16<239786> 12:09
p6eval rakudo fb2fd4: OUTPUT«2332550␤»
viklund_ rakudo: say chr( :16($_)) for <E2 98 BA>
p6eval rakudo fb2fd4: OUTPUT«â␤␤º␤»
masak I'm confused.
I don't think that's a real entity.
viklund_ about what?
you don't think "&#9786;" is a real entety?
masak you're supposed to _name_ the entity, not encode it between the '&' and the ';'
viklund_: yes, I do. 12:10
oh, now I see how it works.
nevermind.
viklund_ but as I said, CGI.pm sees " %E2%98%BA"
(without the space) 12:11
which I believe is the byte sequence of the smiley
very strange... 12:12
masak yes.
where does it turn from an entity into bytes?
that, ISTR, was the question I got stuck at last time we investigated this. 12:13
our best guess was that Apache was trying to do us a favour.
viklund_ but since I have a script running on apache that actually does the right thing
masak right.
viklund_ (the same apache instance)
masak so what can it be, then? 12:14
viklund_ it is probably something we can fix somehow
whatever
I'm going to look into this more tonight, now I need to go and have lunch
I'm going to gist the script where it worked
masak goodie. 12:15
viklund_ gist.github.com/124830
Next step is to transfer the exact html from the edit-page to that script 12:16
lunch &
masak viklund_: you know what we should do? ask on PerlMonks! 12:30
12:58 PerlPilot joined 14:43 ruoso joined 15:25 masak joined
viklund masak: maybe ask on perlmonks later, we need to do some more tests first ;) 16:05
masak agreed. 16:06
viklund do heredocs work in p6?
masak in p6 yes, in Rakudo no. :/
viklund attans 16:07
masak indeed.
viklund I'll do a multiline string instead
this bug bugs me ;( 16:09
masak being passionate about bugs is often very useful. 16:10
viklund yes 16:11
this is getting... ehm, stranger 16:32
the test-scripts that works have http-headers that specify encoding iso-8859-1, but the page that doesn't work has encoding utf8 16:33
both extra-specify utf8 in the html head (via a meta tag)
Alva wokeup 16:34
Ha! That's the bug 16:42
if we start sending ascii instead of utf8 posting utf8 will start working!
or we try to find out how to parse it 16:43
(first option is easier)
masak?
masak sorry, pn the phone.
s/pn/on/ 16:44
viklund np
masak :)
viklund or maybe sending latin-1?
I think we can have utf8 characters in the document even, because of the <meta>-directive in the <head> 16:45
it feels kind of backwards...
heh, now I got "&amp;#9786;" 16:48
november is decoding twice here, I think the second time is when parsing mediawikimarkup
yes 16:49
it is
I can patch it so numbered HTML-entities work 16:50
(somehow)
masak is back now 17:01
wow, that sounds great. 17:02
I like how you now seem to have an understanding of this issue. I still don't. :)
viklund I can explain later 17:03
masak: how do I match # in p6? 17:04
(preferrably in a //)
masak / '#' /
viklund ah
ty
right, I tend to forget the new regex syntax... 17:05
masak I can understand that, especially if you're doing p5 regexes all day.
viklund today I've been switching a bit back and forth as well 17:06
masak I think it'll feel strange to be teaching p5 this summer. :)
viklund ;)
Adam (my brother) will attend that course 17:07
masak nice. 17:08
viklund Yahoo! 17:11
I got smileyface: ☺
masak \\o/
er, i mean \\☺/
viklund (: 17:13
but this will be really hard to do right in Web.pm
my solution is kindof hackish...
masak viklund: if you had a use.perl.org blog, I'd ask you to blog about this there... 17:14
viklund ;) 17:16
Time to update feather and tell mr. lichtkind about it
masak definitely. 17:17
viklund++
viklund he crashes November a lot, that's good
masak yes, very. 17:19
I should blog about that, actually.
and about this latest fix of yours.
viklund november-wiki.org/view/Ugly 17:21
zarah viklund's link is also tinyurl.com/mbkwhm
18:48 lichtkind joined
viklund lichtkind: now you can post unicode 18:54
to november 18:55
lichtkind viklund++ great
viklund you seen in #perl6 mberens also wants to edit in november 18:56
viklund lichtkind: now you can also have spaces in URLs (like 'Perl 6') 22:17
lichtkind great thanks
viklund it gets translated to 'Perl_6'
lichtkind thats how most do it :)
viklund yes, only way that's sane really 22:18
lichtkind: I haven't updated the server yet though... 22:19
lichtkind no pressure i just finished some things in the tablets 22:20
viklund lichtkind: I fixed the cancel bug as well 22:23
updating server now, then sleep
lichtkind great viklund++ 22:24
viklund now there's only your feature request of TOC left in the issue tracker :) 22:25
lichtkind i have another feature request :)
are maybe its already in there
is there a tag to forma sourcecode 22:26
viklund not in the tracker
no
lichtkind i mean in november
like <verbatim> in twiki 22:27
viklund there's no more issues in the tracker, that's what I meant
yes I know
lichtkind i understood
viklund I think that is probably best handled via plugins
viklund really needs to implement that plugin system
both TOC and that source code thingy would be quite easy then 22:28
and if we do that we can move Tags.pm into a plugin
anyway, the server is updated
lichtkind yes
if it does the source thing rights its already more usefull that the socialtext 22:29
viklund ;) 22:30
@tell masak I fixed all the bugs, now there's only features left ;) 22:33
zarah Consider it noted.
viklund zarah: thank you
zarah you're welcome, viklund :)