From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 15 10:40:22 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98D5416A4CE for ; Sat, 15 May 2004 10:40:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 425F543D4C for ; Sat, 15 May 2004 10:40:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i4FHeEbm027310 for ; Sat, 15 May 2004 10:40:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4FHeEhf027306; Sat, 15 May 2004 10:40:14 -0700 (PDT) (envelope-from gnats) Resent-Date: Sat, 15 May 2004 10:40:14 -0700 (PDT) Resent-Message-Id: <200405151740.i4FHeEhf027306@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Wolfgang Zenker Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F78B16A4CE for ; Sat, 15 May 2004 10:39:56 -0700 (PDT) Received: from subnet.sub.net (subnet.sub.net [193.197.184.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CB8843D4C for ; Sat, 15 May 2004 10:39:54 -0700 (PDT) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from subnet.sub.net (uucp@localhost [127.0.0.1]) i4FHdqNw029621 for ; Sat, 15 May 2004 19:39:53 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from lyxys.ka.sub.org (uucp@localhost)i4FHdqTW029619 for FreeBSD-gnats-submit@freebsd.org; Sat, 15 May 2004 19:39:52 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from localhost (2818 bytes) by lyxys.ka.sub.org via sendmail with P:stdio/R:smart_host/T:inet_uusmtp (sender: ) (ident using unix) id for ; Sat, 15 May 2004 19:38:20 +0200 (CEST) (Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Aug-23) Message-Id: Date: Sat, 15 May 2004 19:38:20 +0200 (CEST) From: Wolfgang Zenker To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: wolfgang@lyxys.ka.sub.org Subject: ports/66669: lang/php4 with builtin gd does not render characters above 0x7f X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Wolfgang Zenker List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 May 2004 17:40:22 -0000 >Number: 66669 >Category: ports >Synopsis: lang/php4 with builtin gd does not render characters above 0x7f >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 15 10:40:13 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Wolfgang Zenker >Release: FreeBSD 4.10-BETA i386 >Organization: >Environment: System: FreeBSD desk.lyx 4.10-BETA FreeBSD 4.10-BETA #24: Wed Apr 14 09:07:40 CEST 2004 wolfgang@desk.lyx:/var/obj/usr/local/src/sys/DESK i386 Port version: php4-4.3.6_1 Port parameters: BATCH=YES WITH_WDDX=YES WITH_GD=YES >Description: When you try to render text containing characters above 0x7f, e.g. a german "umlaut", into a graphic, all characters > 0x7f are rendered as an empty block. I haven't tried this on non-FreeBSD systems yet, but there is some evidence this is a FreeBSD- and not a PHP problem: This bug creates a problem for users of the typo3 CMS system in creating graphical menues. All users reporting this problem on the typo3 mailing lists where using FreeBSD, while most(?) of the typo3 users apparently use Linux. >How-To-Repeat: The php-script imgtest.php below here demonstrates the problem. It should generate a jpg containing the text "Bäh!" (note the second letter is a german a-umlaut). The second character is displayed as an empty white block with black borders instead. I used an arial-font from the x11-fonts/webfonts port, but any other ttf-font containing that character should do. Just change /usr/X11R6/lib/X11/fonts/webfonts/arial.ttf to the font you want to use. --- imgtest.php begins here --- --- imgtest.php ends here --- >Fix: You can work around the problem by compiling lang/php4 in a way that it uses graphics/gd instead of the builtin gd bundled with php4. To do this change the Line in lang/php4/Makefile saying CONFIGURE_ARGS+=--with-gd \ into CONFIGURE_ARGS+=--with-gd=${LOCALBASE} \ and build lang/php4 after installing graphics/gd first. Be aware that this minimal Makefile patch doesn't register the dependency from ang/php4 to graphics/gd, to do this you would probably have to add a LIB_DEPENDS line as well. >Release-Note: >Audit-Trail: >Unformatted: