This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1124] iconv incorrectly converts cp1255


------- Additional Comments From bruno at clisp dot org  2005-08-01 12:11 -------
In the original code snippet, there's a call to 
 
     iconv(the_iconv, NULL, NULL, &utf8, &bytes_written); 
 
missing at the end. 
 
Ilya Konstantinov wrote: 
> Thus, the solution would be to mandate all iconv users to call iconv(cd, NULL, 
> NULL, &outbuf, &outlen) once more after they finished their conversion loop, 
> just to flush out remaining data. 
 
Absolutely. That's how iconv() is meant to be used. 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1124

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]