[fpc-devel] iconv unit/problem
Marco van de Voort
marcov at stack.nl
Tue Jul 15 17:26:07 CEST 2008
Hi,
because there are several bugreports asking for an iconv header
translations, and one contained a patch from Whitewind which I tried to
cleanup and get working.
I now have a bit of an odd problem with it that it seems to decode one char
less than the input specifies.
I tried to remedy this by always decoding a char more, but this messes up
the number of bytes written.
I wrapped everything up in a little test that decodes twice (one with N
chars as it should be one with N+1 chars) and a script to reproduce and put
it at
http://www.stack.nl/~marcov/lenc.zip
Probably it is something horribly simple, but I'm not seeing it :-)
Marco
Ref:
http://bugs.freepascal.org/view.php?id=11429
http://bugs.freepascal.org/view.php?id=11203
More information about the fpc-devel
mailing list