Jakub Narebski [off-list ref] writes:
Well, control characters (at least some of them) are not correct
characters in UTF-8 HTML output; Mozilla in strict XHTML mode complains.
Currently...
I said you quote controls (and only controls) as unsafe, so you
are not disagreeing with me here. However "controls are unsafe"
does not necessarily mean "unsafe characters are all controls",
does it? That was what my comments abuot the comment before the
function was.
Which solution do you think it's best?
Sorry, if it was not clear in my message, I wanted to say that I
kinda liked those "control pictures" in U+2400 range.
Dear diary, on Fri, Nov 03, 2006 at 11:44:48PM CET, I got a letter
where Junio C Hamano [off-list ref] said that...
Jakub Narebski [off-list ref] writes:
quoted
Which solution do you think it's best?
Sorry, if it was not clear in my message, I wanted to say that I
kinda liked those "control pictures" in U+2400 range.
In principle, right now it should be pretty easy for a project that for
some reason does not use UTF-8 in commits etc. to adjust gitweb to work
properly, right? Just change the encoding in HTTP headers and you're
done, I think.
Is it worth trying to preserve that flexibility?
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
Petr Baudis wrote:
Dear diary, on Fri, Nov 03, 2006 at 11:44:48PM CET, I got a letter
where Junio C Hamano [off-list ref] said that...
quoted
Jakub Narebski [off-list ref] writes:
quoted
Which solution do you think it's best?
Sorry, if it was not clear in my message, I wanted to say that I
kinda liked those "control pictures" in U+2400 range.
In principle, right now it should be pretty easy for a project that for
some reason does not use UTF-8 in commits etc. to adjust gitweb to work
properly, right? Just change the encoding in HTTP headers and you're
done, I think.
Is it worth trying to preserve that flexibility?
It should be also quite easy to change to_uft8 subroutine to actually
convert to utf8. But even if we don't use UTF-8 encoding for HTML in
gitweb, numerical character entities (and that's how those "control
pictures" are entered) should work equally well regardless of encoding.
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git