From owner-freebsd-questions@freebsd.org Thu Oct 1 19:22:03 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22D99A0CB6D for ; Thu, 1 Oct 2015 19:22:03 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay102.isp.belgacom.be (mailrelay102.isp.belgacom.be [195.238.20.129]) by mx1.freebsd.org (Postfix) with ESMTP id B8A7E13A2 for ; Thu, 1 Oct 2015 19:22:02 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=d6O4W030xngO5QkzyDOul/vmjwC4sFqcTOV5kZr+d1k= c=1 sm=2 a=6I5d2MoRAAAA:8 a=dem_UprG048EEpymrh0A:9 a=CjuIK1q_8ugA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AkCgBHhg1W//1LsVtdAYMngTMPvXEBDYQ+gzYCgTc5FAEBAQEBAQGBCkEBAgKDXwEBBCcTHDMLGAkQAhMPKh4ZG4gXAct/AQEIAgEfi3GFFBcRAYQDAQSVeY0OWH6NOIhcgmCBDx8BAUKEBDwzhj1iglkBAQE Received: from 253.75-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.75.253]) by relay.skynet.be with ESMTP; 01 Oct 2015 21:20:49 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id t91JKmDZ088769 for ; Thu, 1 Oct 2015 21:20:48 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Thu, 1 Oct 2015 21:20:47 +0200 From: Tijl Coosemans 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2015 19:22:03 -0000 On Thu, 1 Oct 2015 01:37:52 -0700 (MST) kora via freebsd-questions 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".