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

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

Re: [bug-gnu-libiconv] libiconv on FreeBSD 10 don't convert utf-8 -> wch


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] libiconv on FreeBSD 10 don't convert utf-8 -> wchar_t
Date: Sun, 02 Oct 2016 13:48:16 +0200
User-agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; )

Hi,

kora wrote on 2015-10-02:
> I try to port my software written in C++ to FreeBSD 10.2.
> I need to convert strings
> "utf-8 -> wchar_t" respectively
> "wchar_t -> utf-8"
> 
> Using the "libiconv" converter  libraryit returns Errno 86
> if the string contains a non ANSII character.

1) Please check that you have the right version of libiconv. GNU libiconv 1.14
should support this without problems. Older versions of GNU libiconv had a
bug in the conversion to wchar_t (but not on FreeBSD, IIRC). And FreeBSD also
has its own "native" iconv implementation [1].

2) An errno EILSEQ can occur in various situations; be sure to use the
iconv() function correctly. For an example, see the extras/iconv_string.c
code in the libiconv distribution.

Bruno

[1] https://www.freebsd.org/doc/en/books/porters-handbook/using-iconv.html




reply via email to

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