[Clipart] 2 submit problems

Jonadab the Unsightly One jonadab at bright.net
Fri Jul 29 19:49:36 PDT 2005


Matthew Gates <matthew at porpoisehead.net> writes:

> Two things.
> 
> 1.  I'm still confused about how the submit thing is supposed to
> work.  From the front page, I browsed to a file I wanted to submit,
> and clicked send file.  Then I get the form to fill in the details,
> which contains another browse and submit button.  So I managed to
> send two copied.  This is really confusing IMO.  Perhaps I'm just
> dense...

Hmmm...  I think it is not supposed to work that way; if you have
already submitted the file, it is supposed to be stored and your form
contains a token that allows the upload script to find it again.
Well, that's how it's *supposed* to work...

I may have to look into this, after the 0.16 release.

> 2. My SVG file seems to be corrupted in the upload process:
> 
> $ /opt/inkscape-0.42/bin/inkscape ampelm_nnchen_matthew_ga_01.svg
> ampelm_nnchen_matthew_ga_01.svg:6: parser error : Input is not proper 
> UTF-8, indicate encoding !
> Bytes: 0xE4 0x6E 0x6E 0x63
>         <dc:title>Ampelmännchen</dc:title>

Yes, that is the remaining known bug in the upload script.  It needs
to convert any of the metadata that it receives from the form into
UTF8 before adding them to the file.  Currently it naively assumes
that there is only one character set in the universe, which works for
a large percentage of the English-speaking world...

You should not be bitten by this bug if your browser sends the
metadata as UTF8 in the first place, or if they only have ASCII
characters, or if you submit under a waxing gibbous moon an
integer-multiple of seven seconds since midnight on the ides of the
month.  Wait, did I say that last part out loud?

Anyway, this is an issue that I hope to tackle soon if not next, now
that we have the HASH issue out of the way.  I *think* that this one
can be handled just by changes to the upload script itself, without
touching SVG::Metadata.  It would probably be a five-minute fix for
someone who fully groks unicode, but I expect to spend rather longer
than that on it.

-- 
Open Clip Art Library:  Drawing Together
http://www.openclipart.org/




More information about the clipart mailing list