Index: cxxtools-2.0/src/iconvstream.cpp
===================================================================
--- cxxtools-2.0.orig/src/iconvstream.cpp	2011-08-08 12:54:24.615278401 +0300
+++ cxxtools-2.0/src/iconvstream.cpp	2011-08-08 12:54:49.719278326 +0300
@@ -129,7 +129,7 @@
           &inbufptr, &inbytesleft,
           &outbufptr, &outbytesleft);
 
-    if (s < 0 && errno != 0 && errno != EINVAL && errno != E2BIG)
+    if (s == size_t(-1) && errno != 0 && errno != EINVAL && errno != E2BIG)
     {
       log_warn("convert failed");
       return traits_type::eof();
