From owner-freebsd-office@freebsd.org Mon Sep 25 21:20:45 2017 Return-Path: Delivered-To: freebsd-office@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 4D432E24654 for ; Mon, 25 Sep 2017 21:20:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 34E6B69E00 for ; Mon, 25 Sep 2017 21:20:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 31088E24653; Mon, 25 Sep 2017 21:20:45 +0000 (UTC) Delivered-To: office@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 30B01E24652 for ; Mon, 25 Sep 2017 21:20:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1F71A69DFF for ; Mon, 25 Sep 2017 21:20:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8PLKiko086305 for ; Mon, 25 Sep 2017 21:20:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: [Bug 215393] devel/boost-libs: bad encoding conversion with base iconv() Date: Mon, 25 Sep 2017 21:20:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tijl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: office@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-office@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Office applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 21:20:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215393 --- Comment #12 from Tijl Coosemans --- Created attachment 186721 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D186721&action= =3Dedit boost.locale patch (In reply to Jan Beich from comment #11) If the input buffer is valid UTF-8 then POSIX says this: > If iconv() encounters a character in the input buffer that is valid, but = for > which an identical character does not exist in the target codeset, iconv() > shall perform an implementation-defined conversion on this character. By default our iconv either replaces such characters with "?" or transliter= ates them (e.g. "=C4=9D" becomes "^g"). GNU iconv returns an error in this case= , which I believe is not POSIX compliant. The problem reported in this bug is in Boost itself. Their use of __ICONV_F_HIDE_INVALID on FreeBSD does not give the desired behaviour. Ple= ase try the attached patch. Make sure your ports tree is at least r450634. --=20 You are receiving this mail because: You are the assignee for the bug.=