bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] [bug #57723] Conversion from CP1258 to UTF-8 may drop


From: Bruno Haible
Subject: [bug-gnu-libiconv] [bug #57723] Conversion from CP1258 to UTF-8 may drop last byte
Date: Sun, 2 Feb 2020 06:34:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

Update of bug #57723 (project libiconv):

                  Status:                    None => Not a Bug              
             Assigned to:                    None => haible                 
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Your code is lacking an iconv(cd, NULL, NULL, &outbufp, &outleft) call at the
end. Look at

* the POSIX specification
https://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html

* the manual page http://man7.org/linux/man-pages/man3/iconv.3.html

* the example code in libiconv/extras/iconv_string.c for a working example.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57723>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]