The bug shows this patch

size_t is never less than 0 because is unsigned.
---
  src/iconvstream.cpp |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/iconvstream.cpp b/src/iconvstream.cpp
index 1dccf5e..c263232 100644
--- a/src/iconvstream.cpp
+++ b/src/iconvstream.cpp
@@ -122,7 +122,7 @@ iconvstreambuf::int_type 
iconvstreambuf::overflow(int_type c)
&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();
-- 
1.7.2.5


On 08/12/2011 05:59 PM, Tommi Mäkitalo wrote:
> Am Donnerstag, August 11, 2011, 12:04:54 schrieb Jiří Pinkava:
>> Hi,
>>
>> libcxx ver 1.x is used in many "stable" distributions (mainly debian),
>> but contains a few bugs. The one in which I'm interested is described in
>> SF.net bugzilla (iconv bug). The goal is push this fixes into
>> distributions, but his would be more easier if new - bug fix - release
>> of 1.x series would be released. Is there will to do so?
>>
>> J. Pinkava.
>>
> Hi,
>
> which iconv bugfix you are interested in? I can prepare a bugfix and talk to
> the debian maintainer, if he can apply it, if I know, which one you need.
>
> Currently we are working on packaging cxxtools 2.0 (or 2.1) for debian. But it
> will take some time until it reaches debian.
>
> The iconv stuff is not compiled by default into cxxtools any more, since I did
> not know, if anyone needs it. Do you use it? For what? We have extensive
> unicode and utf-8 support in cxxtools without iconv. If that is enough, I
> would like to keep it switched off just to reduce external dependencies.
In fact I use only iconv (iconvstream) for "some wired encoding" to 
utf-8 conversion.
The goal is push fixed version into debian squeeze-stable, I'm already 
trying to do this, but with no much success.

> Tommi
>
> ------------------------------------------------------------------------------
> FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
> Subversion made easy with a complete admin console. Easy
> to use, easy to manage, easy to install, easy to extend.
> Get a Free download of the new open ALM Subversion platform now.
> http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general


------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to