UTF-8 encoding in replies

Russ Allbery rra at stanford.edu
Thu Aug 28 06:31:21 UTC 2008

Julien ÉLIE <julien at trigofacile.com> writes:

>> version=`echo "$1" | tr -dc 'A-Za-z0-9.,;_ -'`
>> extra=`echo "$2" | tr -dc 'A-Za-z0-9.,;_ -'`
> It will also remove correctly UTF-8-encoded strings (which are allowed).
> And I believe "iconv" cannot be used because everybody does not have it...

Oh, yeah, good point.

> I also see that we have to cut the display of ${INN_VERSION_STRING}
> in the answers because the administrator can put a very long string.
> It can be done during the printf() reply.

I wonder if the best way to deal with this is just with documentation.
You have to edit the Makefile to change this anyway, IIRC, and we can make
it clear in the comment that if you do something stupid, your server won't
comply with the protocol.

Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

More information about the inn-workers mailing list