From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 8 16:00:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E1B4641D for ; Sun, 8 Dec 2013 16:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BCC7F1CEF for ; Sun, 8 Dec 2013 16:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rB8G00jF010569 for ; Sun, 8 Dec 2013 16:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rB8G00Ju010562; Sun, 8 Dec 2013 16:00:00 GMT (envelope-from gnats) Resent-Date: Sun, 8 Dec 2013 16:00:00 GMT Resent-Message-Id: <201312081600.rB8G00Ju010562@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Gmelin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4C5F53C0 for ; Sun, 8 Dec 2013 15:52:26 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 364861CC8 for ; Sun, 8 Dec 2013 15:52:26 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rB8FqPVo062039 for ; Sun, 8 Dec 2013 15:52:25 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rB8FqP29062030; Sun, 8 Dec 2013 15:52:25 GMT (envelope-from nobody) Message-Id: <201312081552.rB8FqP29062030@oldred.freebsd.org> Date: Sun, 8 Dec 2013 15:52:25 GMT From: Michael Gmelin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/184595: converters/php5-iconv: iconv transliteration support broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Dec 2013 16:00:01 -0000 >Number: 184595 >Category: misc >Synopsis: converters/php5-iconv: iconv transliteration support broken >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 08 16:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Michael Gmelin >Release: 10.0-BETA3 >Organization: Grem Equity GmbH >Environment: FreeBSD srv10 10.0-BETA3 FreeBSD 10.0-BETA3 #0: Mon Dec 2 20:44:29 UTC 2013 root@:/usr/obj/usr/src/sys/GENERIC amd64 >Description: php5-iconv has been changed to use FreeBSD's native iconv implementation where available (read FreeBSD 10). Unfortunately FreeBSD doesn't support GNU iconv's TRANSLIT and IGNORE extensions, which are clearly documented to be supported unconditionally on any platform by the PHP project: http://www.php.net/manual/en/function.iconv.php "out_charset The output charset. If you append the string //TRANSLIT to out_charset transliteration is activated. This means that when a character can't be represented in the target charset, it can be approximated through one or several similarly looking characters. If you append the string //IGNORE, characters that cannot be represented in the target charset are silently discarded. Otherwise, str is cut from the first illegal character and an E_NOTICE is generated." As a result, PHP code that runs correctly on other operating systems or FreeBSD < 10 will break in subtle ways. >How-To-Repeat: Run the following code snippet: cat t.php < EOF FreeBSD 9.2: $ php t.php TZst FreeBSD 10 BETA3: $ php t.php T?st >Fix: Implement TRANSLIT/IGNORE extensions in base or make the port use converters/libiconv. >Release-Note: >Audit-Trail: >Unformatted: