From owner-freebsd-ports@FreeBSD.ORG Thu Dec 20 08:40:15 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B767016A421 for ; Thu, 20 Dec 2007 08:40:15 +0000 (UTC) (envelope-from nicki@astcape.co.za) Received: from ns1.astcape.co.za (ns1.astcape.co.za [196.7.15.16]) by mx1.freebsd.org (Postfix) with ESMTP id 7C80013C47E for ; Thu, 20 Dec 2007 08:40:13 +0000 (UTC) (envelope-from nicki@astcape.co.za) Received: from localhost (localhost.astcape.co.za [127.0.0.1]) by ns1.astcape.co.za (Postfix) with ESMTP id 2877F826BA for ; Thu, 20 Dec 2007 10:40:11 +0200 (SAST) Received: from ns1.astcape.co.za ([127.0.0.1]) by localhost (ns1.astcape.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 78701-10 for ; Thu, 20 Dec 2007 10:40:04 +0200 (SAST) Received: from CC10673 (unknown [192.168.1.229]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ns1.astcape.co.za (Postfix) with ESMTP id 5D8F17EE13 for ; Thu, 20 Dec 2007 10:40:04 +0200 (SAST) Message-ID: <013701c842e3$e9cc2a20$e501a8c0@CC10673> From: "Nicki de Wet" To: Date: Thu, 20 Dec 2007 10:40:02 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Scanned: by amavisd-new at astcape.co.za Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: www/horde-base X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 08:40:15 -0000 The latest patch broke my horde, I get the following error when opening = horde in the browser: Parse error: syntax error, unexpected T_STRING in = /usr/local/www/horde/lib/Horde/NLS.php on line 122 This is the file that was patched. Here is the patch file's contents: --- lib/Horde/NLS.php.orig 2007-09-29 07:22:46.000000000 -0800 +++ lib/Horde/NLS.php 2007-12-18 11:16:03.000000000 -0900 @@ -119,6 +119,10 @@ setlocale(LC_ALL, $lang_charset); } } + /* avoid FreeBSD issapce(3) bug */ + if(NLS::getCharset() =3D=3D "UTF-8"){ + setlocale(LC_CTYPE,"C"); + } @putenv('LANG=3D' . $lang_charset); @putenv('LANGUAGE=3D' . $lang_charset); } Here is what the file looks like now, obviously there were some funny = characters: setlocale(LC_ALL, $lang_charset); } } \xa0 \xa0 \xa0 \xa0/* avoid FreeBSD issapce(3) bug */ \xa0 \xa0 \xa0 \xa0if(NLS::getCharset() =3D=3D "UTF-8"){ \xa0 \xa0 \xa0 \xa0 \xa0 \xa0setlocale(LC_CTYPE,"C"); \xa0 \xa0 \xa0 \xa0} @putenv('LANG=3D' . $lang_charset); @putenv('LANGUAGE=3D' . $lang_charset); } This is what the patch should look like; --- usr/local/www/horde/lib/Horde/NLS.php Sat Sep 29 17:22:46 2007 +++ /usr/local/www/horde/lib/Horde/NLS.php Thu Dec 20 10:38:46 2007 @@ -119,6 +119,10 @@ setlocale(LC_ALL, $lang_charset); } } + /* avoid FreeBSD issapce(3) bug */ + if(NLS::getCharset() =3D=3D "UTF-8"){ + setlocale(LC_CTYPE,"C"); + } @putenv('LANG=3D' . $lang_charset); @putenv('LANGUAGE=3D' . $lang_charset); } Regards, Nicki