I have another problem with forms, which occurs when a form has no
input.

I've tracked it down to line 335 of utils/utf8.c.  When in=="" and/or
slen==0, the iconv function returns -1.

If I add jmb's line to print the error code after it fails, I get:
Failed, errno == 22 (Invalid argument)

The obvious thing to me is to avoid getting this far, as encoding an
empty string appears to be a waste of time.  However, I was curious as
to the best way to handle this.  Is iconv() not performing as it
should (again), or is this error correct and not handled by NetSurf
properly?

Thanks
Chris

Reply via email to