Second try, preserving iconv this time. Compiles/works on Ubuntu 11.10/gcc 4.6.1.
Fix GCC4.6 errors on -Wunused-but-set-variable.
...almost! If you leave the XXX comment in I'll merge it. That's a note left for the benefit of a future coder.
Thanks. Just to be sure I get it right, would you like the res declaration and assignment left-in-but-commented as well for reference then? Or would you prefer just the XXX line by itself?
Just the XXX line is fine (so we can get rid of the warning)
Added back a comment requested to help future coders.