Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Oct 2015 21:20:47 +0200
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to get libiconv on FreeBSD 10 convert utf-8 -> wchar_t ?
Message-ID:  <20151001212047.1f79e315@kalimero.tijl.coosemans.org>
In-Reply-To: <1443688672992-6042436.post@n5.nabble.com>
References:  <1443688672992-6042436.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 1 Oct 2015 01:37:52 -0700 (MST) kora via freebsd-questions <freebsd-questions@freebsd.org> wrote:
> I'm new working / developing on FreeBSD.
> I tried to port my software written in C++ to FreeBSD 10.2.
> I have a "utf-8 -> wchar_t"- converting problem using the "libiconv"
> converter  library in my C code.
> 
> I have heard about a problem of that kind pending since FreeBDS 10.
> Has anybody a hint or solution for that problem ?

WCHAR_T conversion is not supported by FreeBSD's implementation of
iconv so you must install GNU libiconv (converters/libiconv port).
Then compile your code with "-I/usr/local/include" to use
/usr/local/include/iconv.h instead of /usr/include/iconv.h and link
your code with "-L/usr/local/lib -liconv".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151001212047.1f79e315>