[Bug 215393] devel/boost-libs: bad encoding conversion with base iconv()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 25 21:20:45 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215393

--- Comment #12 from Tijl Coosemans <tijl at FreeBSD.org> ---
Created attachment 186721
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=186721&action=edit
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 transliterates
them (e.g. "ĝ" 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.  Please
try the attached patch.  Make sure your ports tree is at least r450634.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-office mailing list